Show / Hide Table of Contents

    Interface IBehavior

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

    Namespace: Silverback.Messaging.Publishing
    Assembly: Silverback.Core.dll
    Syntax
    public interface IBehavior

    Methods

    | Improve this doc View source

    HandleAsync(object, MessageHandler)

    Process, handles or transforms the messages being published to the internal bus.

    Declaration
    Task<IReadOnlyCollection<object?>> HandleAsync(object message, MessageHandler next)
    Parameters
    Type Name Description
    object message

    The message being published.

    MessageHandler next

    The next behavior in the pipeline.

    Returns
    Type Description
    Task<IReadOnlyCollection<object>>

    A Task<TResult> representing the asynchronous operation. The task result contains the result values (if any).

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini