Show / Hide Table of Contents

    Class KafkaKeyOutboundHeadersEnricher<TMessage>

    The enricher that sets the message id header according to a value provider function.

    Inheritance
    object
    GenericOutboundHeadersEnricher<TMessage>
    KafkaKeyOutboundHeadersEnricher<TMessage>
    Implements
    IOutboundMessageEnricher
    Inherited Members
    GenericOutboundHeadersEnricher<TMessage>.Enrich(IOutboundEnvelope)
    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.Kafka.dll
    Syntax
    public class KafkaKeyOutboundHeadersEnricher<TMessage> : GenericOutboundHeadersEnricher<TMessage>, IOutboundMessageEnricher
    Type Parameters
    Name Description
    TMessage

    The type of the messages to be enriched.

    Constructors

    KafkaKeyOutboundHeadersEnricher(Func<IOutboundEnvelope<TMessage>, object?>)

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

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

    The header value provider function.

    KafkaKeyOutboundHeadersEnricher(Func<TMessage?, object?>)

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

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

    The header value provider function.

    Implements

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