Class BrokerOptionsBuilderAddInboundLogExtensions
Adds the AddInboundLog
and related methods to the IBrokerOptionsBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class BrokerOptionsBuilderAddInboundLogExtensions
Methods
| Improve this doc View sourceAddInMemoryInboundLog(IBrokerOptionsBuilder)
Adds the necessary services to enable the LogExactlyOnceStrategy storing the messages identifiers in memory.
The LogExactlyOnceStrategy stores uses an IInboundLog to keep track of to keep track of each processed message and guarantee that each one is processed only once.
Declaration
public static IBrokerOptionsBuilder AddInMemoryInboundLog(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. |
AddInboundLogDatabaseTable(IBrokerOptionsBuilder)
Adds the necessary services to enable the LogExactlyOnceStrategy using a database table as store.
The LogExactlyOnceStrategy stores uses an IInboundLog to keep track of to keep track of each processed message and guarantee that each one is processed only once.
Declaration
public static IBrokerOptionsBuilder AddInboundLogDatabaseTable(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. |
AddInboundLog<TInboundLog>(IBrokerOptionsBuilder)
Adds the necessary services to enable the LogExactlyOnceStrategy.
The LogExactlyOnceStrategy stores uses an IInboundLog to keep track of to keep track of each processed message and guarantee that each one is processed only once.
Declaration
public static IBrokerOptionsBuilder AddInboundLog<TInboundLog>(this IBrokerOptionsBuilder brokerOptionsBuilder) where TInboundLog : class, IInboundLog
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 |
---|---|
TInboundLog | The type of the IInboundLog to be used. |