Interface IConsumerBehavior
- Namespace
- Silverback.Messaging.Broker.Behaviors
- Assembly
- Silverback.Integration.dll
Can be used to build a custom pipeline, plugging some functionality into the IConsumer.
public interface IConsumerBehavior : IBrokerBehavior, ISorted
- Inherited Members
Methods
HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler, CancellationToken)
Process, handles or transforms the message being consumed.
ValueTask HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next, CancellationToken cancellationToken)
Parameters
contextConsumerPipelineContextThe context that is passed along the behaviors pipeline.
nextConsumerBehaviorHandlerThe next behavior in the pipeline.
cancellationTokenCancellationTokenThe cancellation token that can be used to cancel the operation.