Class BrokerOptionsBuilderAddOutboxWorkerExtensions
Adds the AddOutboxWorker
and related methods to the IBrokerOptionsBuilder.
Inheritance
System.Object
BrokerOptionsBuilderAddOutboxWorkerExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class BrokerOptionsBuilderAddOutboxWorkerExtensions
Methods
| Improve this doc View sourceAddOutboxWorker(IBrokerOptionsBuilder, Nullable<TimeSpan>, Boolean, Int32, DistributedLockSettings)
Adds an OutboxWorker to publish the messages stored in the outbox to the configured broker.
Declaration
public static IBrokerOptionsBuilder AddOutboxWorker(this IBrokerOptionsBuilder brokerOptionsBuilder, TimeSpan? interval = null, bool enforceMessageOrder = true, int batchSize = 1000, DistributedLockSettings distributedLockSettings = null)
Parameters
Type | Name | Description |
---|---|---|
IBrokerOptionsBuilder | brokerOptionsBuilder | The IBrokerOptionsBuilder that references the Microsoft.Extensions.DependencyInjection.IServiceCollection to add the services to. |
System.Nullable<System.TimeSpan> | interval | The interval between each run. The default is 500ms. |
System.Boolean | enforceMessageOrder | If set to |
System.Int32 | batchSize | The number of messages to be loaded and processed at once. |
DistributedLockSettings | distributedLockSettings | The settings for the locking mechanism. The default settings will be used if not specified. |
Returns
Type | Description |
---|---|
IBrokerOptionsBuilder | The IBrokerOptionsBuilder so that additional calls can be chained. |