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
contextProducerPipelineContextThe context that is passed along the behaviors pipeline.
nextProducerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.