Class OutboundMessageRabbitRoutingKeyEnricher<TMessage>
A generic enricher that sets the routing key according to a value provider function.
Inheritance
GenericOutboundHeadersEnricher<TMessage>
OutboundMessageRabbitRoutingKeyEnricher<TMessage>
Implements
Inherited Members
Namespace: Silverback.Messaging.Outbound.Enrichers
Assembly: Silverback.Integration.RabbitMQ.dll
Syntax
public class OutboundMessageRabbitRoutingKeyEnricher<TMessage> : GenericOutboundHeadersEnricher<TMessage>, IOutboundMessageEnricher where TMessage : class
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be enriched. |
Constructors
| Improve this doc View sourceOutboundMessageRabbitRoutingKeyEnricher(Func<IOutboundEnvelope<TMessage>, object?>)
Initializes a new instance of the OutboundMessageRabbitRoutingKeyEnricher<TMessage> class.
Declaration
public OutboundMessageRabbitRoutingKeyEnricher(Func<IOutboundEnvelope<TMessage>, object?> valueProvider)
Parameters
Type | Name | Description |
---|---|---|
Func<IOutboundEnvelope<TMessage>, object> | valueProvider | The kafka key value provider function. |