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

    | Improve this doc View source

    HandleAsync(ConsumerPipelineContext, ConsumerBehaviorHandler)

    Process, handles or transforms the message being consumed.

    Declaration
    Task HandleAsync(ConsumerPipelineContext context, ConsumerBehaviorHandler next)
    Parameters
    Type Name Description
    ConsumerPipelineContext context

    The context that is passed along the behaviors pipeline.

    ConsumerBehaviorHandler next

    The next behavior in the pipeline.

    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

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