Class CorrelationDataOutboundHeadersEnricher<TMessage>
The enricher that sets the correlation data header.
Inheritance
GenericOutboundHeadersEnricher<TMessage>
CorrelationDataOutboundHeadersEnricher<TMessage>
Implements
Inherited Members
Namespace: Silverback.Messaging.Producing.Enrichers
Assembly: Silverback.Integration.MQTT.dll
Syntax
public class CorrelationDataOutboundHeadersEnricher<TMessage> : GenericOutboundHeadersEnricher<TMessage>, IOutboundMessageEnricher
Type Parameters
| Name | Description |
|---|---|
| TMessage | The type of the messages to be enriched. |
Constructors
CorrelationDataOutboundHeadersEnricher(byte[]?)
Initializes a new instance of the CorrelationDataOutboundHeadersEnricher<TMessage> class.
Declaration
public CorrelationDataOutboundHeadersEnricher(byte[]? correlationData)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | correlationData | The correlation data. |
CorrelationDataOutboundHeadersEnricher(Func<IOutboundEnvelope<TMessage>, byte[]?>)
Initializes a new instance of the CorrelationDataOutboundHeadersEnricher<TMessage> class.
Declaration
public CorrelationDataOutboundHeadersEnricher(Func<IOutboundEnvelope<TMessage>, byte[]?> correlationDataProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<IOutboundEnvelope<TMessage>, byte[]> | correlationDataProvider | The correlation data provider function. |
CorrelationDataOutboundHeadersEnricher(Func<TMessage?, byte[]?>)
Initializes a new instance of the CorrelationDataOutboundHeadersEnricher<TMessage> class.
Declaration
public CorrelationDataOutboundHeadersEnricher(Func<TMessage?, byte[]?> correlationDataProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<TMessage, byte[]> | correlationDataProvider | The correlation data provider function. |