Show / Hide Table of Contents

    Class BrokerOptionsBuilderAddOutboxExtensions

    Adds the AddOutbox and related methods to the IBrokerOptionsBuilder.

    Inheritance
    object
    BrokerOptionsBuilderAddOutboxExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Microsoft.Extensions.DependencyInjection
    Assembly: Silverback.Integration.dll
    Syntax
    public static class BrokerOptionsBuilderAddOutboxExtensions

    Methods

    | Improve this doc View source

    AddOutboxDatabaseTable(IBrokerOptionsBuilder)

    Adds the necessary services to enable the OutboxProduceStrategy using a database table as outbox.

    The OutboxProduceStrategy stores the outbound messages into an intermediate outbox, participating in the database transaction. The outbound messages become therefore transactional with the side effects on the local database.

    Declaration
    public static IBrokerOptionsBuilder AddOutboxDatabaseTable(this IBrokerOptionsBuilder brokerOptionsBuilder)
    Parameters
    Type Name Description
    IBrokerOptionsBuilder brokerOptionsBuilder

    The IBrokerOptionsBuilder that references the IServiceCollection to add the services to.

    Returns
    Type Description
    IBrokerOptionsBuilder

    The IBrokerOptionsBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddOutbox<TOutbox>(IBrokerOptionsBuilder)

    Adds the necessary services to enable the OutboxProduceStrategy.

    The OutboxProduceStrategy stores the outbound messages into an intermediate outbox, participating in the database transaction. The outbound messages become therefore transactional with the side effects on the local database.

    Declaration
    public static IBrokerOptionsBuilder AddOutbox<TOutbox>(this IBrokerOptionsBuilder brokerOptionsBuilder) where TOutbox : class, IOutboxWriter, IOutboxReader
    Parameters
    Type Name Description
    IBrokerOptionsBuilder brokerOptionsBuilder

    The IBrokerOptionsBuilder that references the IServiceCollection to add the services to.

    Returns
    Type Description
    IBrokerOptionsBuilder

    The IBrokerOptionsBuilder so that additional calls can be chained.

    Type Parameters
    Name Description
    TOutbox

    The type implementing both the IOutboxWriter and the IOutboxReader interfaces.

    | Improve this doc View source

    AddOutbox<TOutboxWriter, TOutboxReader>(IBrokerOptionsBuilder)

    Adds the necessary services to enable the OutboxProduceStrategy.

    The OutboxProduceStrategy stores the outbound messages into an intermediate outbox, participating in the database transaction. The outbound messages become therefore transactional with the side effects on the local database.

    Declaration
    public static IBrokerOptionsBuilder AddOutbox<TOutboxWriter, TOutboxReader>(this IBrokerOptionsBuilder brokerOptionsBuilder) where TOutboxWriter : class, IOutboxWriter where TOutboxReader : class, IOutboxReader
    Parameters
    Type Name Description
    IBrokerOptionsBuilder brokerOptionsBuilder

    The IBrokerOptionsBuilder that references the IServiceCollection to add the services to.

    Returns
    Type Description
    IBrokerOptionsBuilder

    The IBrokerOptionsBuilder so that additional calls can be chained.

    Type Parameters
    Name Description
    TOutboxWriter

    The type of the IOutboxWriter to be used.

    TOutboxReader

    The type of the IOutboxReader to be used.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini