Show / Hide Table of Contents

    Delegate ConsumerBehaviorHandler

    The delegate that describes a message handler in the consumer pipeline.

    Namespace: Silverback.Messaging.Broker.Behaviors
    Assembly: Silverback.Integration.dll
    Syntax
    public delegate ValueTask ConsumerBehaviorHandler(ConsumerPipelineContext context, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ConsumerPipelineContext context

    The context that is passed along the consumer behaviors pipeline.

    CancellationToken cancellationToken

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

    Returns
    Type Description
    ValueTask

    A ValueTask representing the asynchronous operation.

    Constructors

    ConsumerBehaviorHandler(object, nint)

    The delegate that describes a message handler in the consumer pipeline.

    Declaration
    public ConsumerBehaviorHandler(object @object, nint method)
    Parameters
    Type Name Description
    object object
    nint method

    Methods

    BeginInvoke(ConsumerPipelineContext, CancellationToken, AsyncCallback, object)

    The delegate that describes a message handler in the consumer pipeline.

    Declaration
    public virtual IAsyncResult BeginInvoke(ConsumerPipelineContext context, CancellationToken cancellationToken, AsyncCallback callback, object @object)
    Parameters
    Type Name Description
    ConsumerPipelineContext context
    CancellationToken cancellationToken
    AsyncCallback callback
    object object
    Returns
    Type Description
    IAsyncResult

    EndInvoke(IAsyncResult)

    The delegate that describes a message handler in the consumer pipeline.

    Declaration
    public virtual ValueTask EndInvoke(IAsyncResult result)
    Parameters
    Type Name Description
    IAsyncResult result
    Returns
    Type Description
    ValueTask

    Invoke(ConsumerPipelineContext, CancellationToken)

    The delegate that describes a message handler in the consumer pipeline.

    Declaration
    public virtual ValueTask Invoke(ConsumerPipelineContext context, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ConsumerPipelineContext context
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini