Show / Hide Table of Contents

    Delegate MessageHandler

    The delegate representing the Handle method of the IBehavior.

    Namespace: Silverback.Messaging.Publishing
    Assembly: Silverback.Core.dll
    Syntax
    public delegate ValueTask<IReadOnlyCollection<object?>> MessageHandler(object message)
    Parameters
    Type Name Description
    object message

    The message being published.

    Returns
    Type Description
    ValueTask<IReadOnlyCollection<object>>

    A ValueTask<TResult> representing the asynchronous operation. The task result contains the actual messages to be published.

    Constructors

    MessageHandler(object, nint)

    The delegate representing the Handle method of the IBehavior.

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

    Methods

    BeginInvoke(object, AsyncCallback, object)

    The delegate representing the Handle method of the IBehavior.

    Declaration
    public virtual IAsyncResult BeginInvoke(object message, AsyncCallback callback, object @object)
    Parameters
    Type Name Description
    object message
    AsyncCallback callback
    object object
    Returns
    Type Description
    IAsyncResult

    EndInvoke(IAsyncResult)

    The delegate representing the Handle method of the IBehavior.

    Declaration
    public virtual ValueTask<IReadOnlyCollection<object?>> EndInvoke(IAsyncResult result)
    Parameters
    Type Name Description
    IAsyncResult result
    Returns
    Type Description
    ValueTask<IReadOnlyCollection<object>>

    Invoke(object)

    The delegate representing the Handle method of the IBehavior.

    Declaration
    public virtual ValueTask<IReadOnlyCollection<object?>> Invoke(object message)
    Parameters
    Type Name Description
    object message
    Returns
    Type Description
    ValueTask<IReadOnlyCollection<object>>
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini