Class GenericOutboundHeadersEnricher
A generic enricher that adds a message header according to a static name/value pair or a provider function.
Implements
Inherited Members
Namespace: Silverback.Messaging.Outbound.Enrichers
Assembly: Silverback.Integration.dll
Syntax
public class GenericOutboundHeadersEnricher : GenericOutboundHeadersEnricher<object>, IOutboundMessageEnricher
Constructors
| Improve this doc View sourceGenericOutboundHeadersEnricher(string, Func<IOutboundEnvelope<object>, object?>)
Initializes a new instance of the GenericOutboundHeadersEnricher class.
Declaration
public GenericOutboundHeadersEnricher(string name, Func<IOutboundEnvelope<object>, object?> valueProvider)
Parameters
Type | Name | Description |
---|---|---|
string | name | The header name. |
Func<IOutboundEnvelope<object>, object> | valueProvider | The header value provider function. |
GenericOutboundHeadersEnricher(string, object?)
Initializes a new instance of the GenericOutboundHeadersEnricher class.
Declaration
public GenericOutboundHeadersEnricher(string name, object? value)
Parameters
Type | Name | Description |
---|---|---|
string | name | The header name. |
object | value | The header value. |