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