Class BrokerBehaviorsProvider<TBehavior>
Provides the IReadOnlyList<T> of IProducerBehavior and IConsumerBehavior to be used in the IProducer and IConsumer pipeline.
Implements
IBrokerBehaviorsProvider<TBehavior>
Inherited Members
Namespace: Silverback.Messaging.Broker.Behaviors
Assembly: Silverback.Integration.dll
Syntax
public class BrokerBehaviorsProvider<TBehavior> : IBrokerBehaviorsProvider<TBehavior> where TBehavior : IBrokerBehavior
Type Parameters
| Name | Description |
|---|---|
| TBehavior | The type of the behaviors to be provided, either IProducerBehavior or IConsumerBehavior. |
Constructors
| Improve this doc View sourceBrokerBehaviorsProvider(IServiceProvider)
Initializes a new instance of the BrokerBehaviorsProvider<TBehavior> class.
Declaration
public BrokerBehaviorsProvider(IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | serviceProvider | The IServiceProvider to be used to resolve the behaviors. |
Methods
| Improve this doc View sourceGetBehaviorsList()
Creates a new IReadOnlyList<T> of IProducerBehavior or IConsumerBehavior to be used in the IProducer or IConsumer pipeline.
Declaration
public IReadOnlyList<TBehavior> GetBehaviorsList()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<TBehavior> | The ready-to-use Stack<T> of |