Show / Hide Table of Contents

    Delegate ProducerBehaviorHandler

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

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

    The context that is passed along the producer 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

    ProducerBehaviorHandler(object, nint)

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

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

    Methods

    BeginInvoke(ProducerPipelineContext, CancellationToken, AsyncCallback, object)

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

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

    EndInvoke(IAsyncResult)

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

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

    Invoke(ProducerPipelineContext, CancellationToken)

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

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