Class ResponseTopicOutboundHeadersEnricher<TMessage>
- Namespace
- Silverback.Messaging.Producing.Enrichers
- Assembly
- Silverback.Integration.MQTT.dll
The enricher that sets the response topic temporary header.
public class ResponseTopicOutboundHeadersEnricher<TMessage> : GenericOutboundHeadersEnricher<TMessage>, IOutboundMessageEnricher
Type Parameters
TMessageThe type of the messages to be enriched.
- Inheritance
-
GenericOutboundHeadersEnricher<TMessage>ResponseTopicOutboundHeadersEnricher<TMessage>
- Implements
- Inherited Members
Constructors
ResponseTopicOutboundHeadersEnricher(Func<IOutboundEnvelope<TMessage>, object?>)
Initializes a new instance of the ResponseTopicOutboundHeadersEnricher<TMessage> class.
public ResponseTopicOutboundHeadersEnricher(Func<IOutboundEnvelope<TMessage>, object?> responseTopicProvider)
Parameters
responseTopicProviderFunc<IOutboundEnvelope<TMessage>, object>The response topic provider function.
ResponseTopicOutboundHeadersEnricher(Func<TMessage?, string?>)
Initializes a new instance of the ResponseTopicOutboundHeadersEnricher<TMessage> class.
public ResponseTopicOutboundHeadersEnricher(Func<TMessage?, string?> responseTopicProvider)
Parameters
ResponseTopicOutboundHeadersEnricher(string?)
Initializes a new instance of the ResponseTopicOutboundHeadersEnricher<TMessage> class.
public ResponseTopicOutboundHeadersEnricher(string? responseTopic)
Parameters
responseTopicstringThe response topic.