Show / Hide Table of Contents

    Class ProducerPipelineContext

    The context that is passed along the producer behaviors pipeline.

    Inheritance
    object
    ProducerPipelineContext
    ProducerPipelineContext<TState>
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Messaging.Broker.Behaviors
    Assembly: Silverback.Integration.dll
    Syntax
    public class ProducerPipelineContext

    Constructors

    ProducerPipelineContext(IOutboundEnvelope, IProducer, IReadOnlyList<IProducerBehavior>, ProducerBehaviorHandler, IServiceProvider)

    Initializes a new instance of the ProducerPipelineContext class.

    Declaration
    public ProducerPipelineContext(IOutboundEnvelope envelope, IProducer producer, IReadOnlyList<IProducerBehavior> pipeline, ProducerBehaviorHandler finalAction, IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    IOutboundEnvelope envelope

    The envelope containing the message to be produced.

    IProducer producer

    The IProducer that triggered this pipeline.

    IReadOnlyList<IProducerBehavior> pipeline

    The behaviors composing the pipeline.

    ProducerBehaviorHandler finalAction

    The final action to be executed after the pipeline has been processed.

    IServiceProvider serviceProvider

    The IServiceProvider to be used to resolve the required services.

    Properties

    CurrentStepIndex

    Gets the index of the current step in the pipeline.

    Declaration
    public int CurrentStepIndex { get; }
    Property Value
    Type Description
    int

    Envelope

    Gets or sets the envelope containing the message to be produced.

    Declaration
    public IOutboundEnvelope Envelope { get; set; }
    Property Value
    Type Description
    IOutboundEnvelope

    FinalAction

    Gets the final action to be executed after the pipeline has been processed.

    Declaration
    public ProducerBehaviorHandler FinalAction { get; }
    Property Value
    Type Description
    ProducerBehaviorHandler

    Pipeline

    Gets the behaviors composing the pipeline.

    Declaration
    public IReadOnlyList<IProducerBehavior> Pipeline { get; }
    Property Value
    Type Description
    IReadOnlyList<IProducerBehavior>

    Producer

    Gets the IProducer that triggered this pipeline.

    Declaration
    public IProducer Producer { get; }
    Property Value
    Type Description
    IProducer

    ServiceProvider

    Gets or sets the IServiceProvider to be used to resolve the required services.

    Declaration
    public IServiceProvider ServiceProvider { get; set; }
    Property Value
    Type Description
    IServiceProvider

    Methods

    Clone(IOutboundEnvelope?)

    Clones the current context, optionally replacing the envelope.

    Declaration
    public virtual ProducerPipelineContext Clone(IOutboundEnvelope? newEnvelope = null)
    Parameters
    Type Name Description
    IOutboundEnvelope newEnvelope

    The new envelope to be used in the cloned context.

    Returns
    Type Description
    ProducerPipelineContext

    The cloned context.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini