Table of Contents

Class BrokerBehaviorsProvider<TBehavior>

Namespace
Silverback.Messaging.Broker.Behaviors
Assembly
Silverback.Integration.dll

Provides the IReadOnlyList<T> of IProducerBehavior and IConsumerBehavior to be used in the IProducer and IConsumer pipeline.

public class BrokerBehaviorsProvider<TBehavior> : IBrokerBehaviorsProvider<TBehavior> where TBehavior : IBrokerBehavior

Type Parameters

TBehavior

The type of the behaviors to be provided, either IProducerBehavior or IConsumerBehavior.

Inheritance
BrokerBehaviorsProvider<TBehavior>
Implements
Inherited Members

Constructors

BrokerBehaviorsProvider(IServiceProvider)

Initializes a new instance of the BrokerBehaviorsProvider<TBehavior> class.

public BrokerBehaviorsProvider(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

The IServiceProvider to be used to resolve the behaviors.

Methods

GetBehaviorsList()

Creates a new IReadOnlyList<T> of IProducerBehavior or IConsumerBehavior to be used in the IProducer or IConsumer pipeline.

public IReadOnlyList<TBehavior> GetBehaviorsList()

Returns

IReadOnlyList<TBehavior>

The ready-to-use Stack<T> of TBehavior.