Interface ICustomHeadersMappings
Can be used to override the default header names.
Namespace: Silverback.Messaging.Headers
Assembly: Silverback.Integration.dll
Syntax
public interface ICustomHeadersMappings
Properties
Count
Gets the number of mappings that have been configured.
Declaration
int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Add(string, string)
Adds a new mapping.
Declaration
void Add(string defaultHeaderName, string customHeaderName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | defaultHeaderName | The default header name. |
| string | customHeaderName | The custom header name to be used instead of the default. |
Apply(MessageHeaderCollection)
Applies the configured mappings to the specified collection of MessageHeader.
Declaration
void Apply(MessageHeaderCollection headers)
Parameters
| Type | Name | Description |
|---|---|---|
| MessageHeaderCollection | headers | The collection of MessageHeader to be mapped. |
Revert(MessageHeaderCollection)
Reverts the headers in the specified collection of MessageHeader to the default header names.
Declaration
void Revert(MessageHeaderCollection headers)
Parameters
| Type | Name | Description |
|---|---|---|
| MessageHeaderCollection | headers | The collection of MessageHeader to be mapped. |