Class BrokerOptionsBuilderAddOutboxExtensions
Adds the AddOutbox
and related methods to the IBrokerOptionsBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class BrokerOptionsBuilderAddOutboxExtensions
Methods
| Improve this doc View sourceAddOutboxDatabaseTable(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. |
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. |
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. |