Interface IConsumerBehavior
Can be used to build a custom pipeline, plugging some functionality into the IConsumer.
Inherited Members
Namespace: Silverback.Messaging.Broker.Behaviors
Assembly: Silverback.Integration.dll
Syntax
public interface IConsumerBehavior : IBrokerBehavior, ISorted
Methods
| Improve this doc View sourceHandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler)
Process, handles or transforms the message being consumed.
Declaration
Task HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next)
Parameters
Type | Name | Description |
---|---|---|
ConsumerPipelineContext | context | The context that is passed along the behaviors pipeline. |
ConsumerBehaviorHandler | next | The next behavior in the pipeline. |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |