Table of Contents

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

context ConsumerPipelineContext

The context that is passed along the behaviors pipeline.

next ConsumerBehaviorHandler

The next behavior in the pipeline.

cancellationToken CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

ValueTask

A ValueTask representing the asynchronous operation.