Table of Contents

Interface IProducerBehavior

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

Can be used to build a custom pipeline, plugging some functionality into the IProducer.

public interface IProducerBehavior : IBrokerBehavior, ISorted
Inherited Members

Methods

HandleAsync(ProducerPipelineContext, ProducerBehaviorHandler, CancellationToken)

Process, handles or transforms the message being produced.

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.