Show / Hide Table of Contents

    Class GenericOutboundHeadersEnricher<TMessage>

    A generic enricher that adds a message header according to a static name/value pair or a provider function.

    Inheritance
    object
    GenericOutboundHeadersEnricher<TMessage>
    CorrelationDataOutboundHeadersEnricher<TMessage>
    KafkaKeyOutboundHeadersEnricher<TMessage>
    ResponseTopicOutboundHeadersEnricher<TMessage>
    StaticOutboundHeadersEnricher
    Implements
    IOutboundMessageEnricher
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Messaging.Producing.Enrichers
    Assembly: Silverback.Integration.dll
    Syntax
    public class GenericOutboundHeadersEnricher<TMessage> : IOutboundMessageEnricher
    Type Parameters
    Name Description
    TMessage

    The type of the messages to be enriched.

    Constructors

    GenericOutboundHeadersEnricher(string, Func<IOutboundEnvelope<TMessage>, object?>)

    Initializes a new instance of the GenericOutboundHeadersEnricher<TMessage> class.

    Declaration
    public GenericOutboundHeadersEnricher(string name, Func<IOutboundEnvelope<TMessage>, object?> valueProvider)
    Parameters
    Type Name Description
    string name

    The header name.

    Func<IOutboundEnvelope<TMessage>, object> valueProvider

    The header value provider function.

    GenericOutboundHeadersEnricher(string, Func<TMessage?, object?>)

    Initializes a new instance of the GenericOutboundHeadersEnricher<TMessage> class.

    Declaration
    public GenericOutboundHeadersEnricher(string name, Func<TMessage?, object?> valueProvider)
    Parameters
    Type Name Description
    string name

    The header name.

    Func<TMessage, object> valueProvider

    The header value provider function.

    GenericOutboundHeadersEnricher(string, object?)

    Initializes a new instance of the GenericOutboundHeadersEnricher<TMessage> class.

    Declaration
    public GenericOutboundHeadersEnricher(string name, object? value)
    Parameters
    Type Name Description
    string name

    The header name.

    object value

    The header value.

    Methods

    Enrich(IOutboundEnvelope)

    Enriches the specified message.

    Declaration
    public void Enrich(IOutboundEnvelope envelope)
    Parameters
    Type Name Description
    IOutboundEnvelope envelope

    The envelope containing the message to be enriched.

    Implements

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