Show / Hide Table of Contents

    Interface IConsumerBehavior

    Can be used to build a custom pipeline, plugging some functionality into the IConsumer.

    Inherited Members
    ISorted.SortIndex
    Namespace: Silverback.Messaging.Broker.Behaviors
    Assembly: Silverback.Integration.dll
    Syntax
    public interface IConsumerBehavior : IBrokerBehavior, ISorted

    Methods

    HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler, CancellationToken)

    Process, handles or transforms the message being consumed.

    Declaration
    ValueTask HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ConsumerPipelineContext context

    The context that is passed along the behaviors pipeline.

    ConsumerBehaviorHandler 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.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini