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
| Improve this doc View sourceHandleAsync(ProducerPipelineContext, ProducerBehaviorHandler)
Process, handles or transforms the message being produced.
Declaration
Task HandleAsync(ProducerPipelineContext context, ProducerBehaviorHandler next)
Parameters
Type | Name | Description |
---|---|---|
ProducerPipelineContext | context | The context that is passed along the behaviors pipeline. |
ProducerBehaviorHandler | next | The next behavior in the pipeline. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |