Interface IProducerBehavior
Can be used to build a custom pipeline, plugging some functionality into the IProducer.
Inherited Members
Namespace: Silverback.Messaging.Broker.Behaviors
Assembly: Silverback.Integration.dll
Syntax
public interface IProducerBehavior : IBrokerBehavior, ISorted
Methods
HandleAsync(ProducerPipelineContext, ProducerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being produced.
Declaration
ValueTask HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| ProducerPipelineContext | context | The context that is passed along the behaviors pipeline. |
| ProducerBehaviorHandler | next | The next behavior in the pipeline. |
| CancellationToken | cancellationToken | The cancellation token that can be used to cancel the operation. |
Returns
| Type | Description |
|---|---|
| ValueTask | A ValueTask representing the asynchronous operation. |