Table of Contents

Class FilterProducerBehavior

Namespace
Silverback.Messaging.Producing.Filter
Assembly
Silverback.Integration.dll

Filter the messages to be produced, based on the configured IOutboundMessageFilter.

public class FilterProducerBehavior : IProducerBehavior, IBrokerBehavior, ISorted
Inheritance
FilterProducerBehavior
Implements
Inherited Members

Constructors

FilterProducerBehavior(ISilverbackLogger<IProducer>)

Initializes a new instance of the FilterProducerBehavior class.

public FilterProducerBehavior(ISilverbackLogger<IProducer> logger)

Parameters

logger ISilverbackLogger<IProducer>

The ISilverbackLogger<TCategoryName>.

Properties

SortIndex

Gets the sort index.

public int SortIndex { get; }

Property Value

int

Methods

HandleAsync(ProducerPipelineContext, ProducerBehaviorHandler, CancellationToken)

Process, handles or transforms the message being produced.

public ValueTask HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next, CancellationToken cancellationToken)

Parameters

context ProducerPipelineContext

The context that is passed along the behaviors pipeline.

next ProducerBehaviorHandler

The next behavior in the pipeline.

cancellationToken CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

ValueTask

A ValueTask representing the asynchronous operation.