Interface ICustomHeadersMappings
Can be used to override the default header names.
Namespace: Silverback.Messaging.Headers
Assembly: Silverback.Integration.dll
Syntax
public interface ICustomHeadersMappings
Properties
| Improve this doc View sourceCount
Gets the number of mappings that have been configured.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Improve this doc View sourceAdd(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(IEnumerable<MessageHeader>)
Applies the configured mappings to the specified collection of MessageHeader.
Declaration
void Apply(IEnumerable<MessageHeader> headers)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<MessageHeader> | headers | The collection of MessageHeader to be mapped. |
Revert(IEnumerable<MessageHeader>)
Reverts the headers in the specified collection of MessageHeader to the default header names.
Declaration
void Revert(IEnumerable<MessageHeader> headers)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<MessageHeader> | headers | The collection of MessageHeader to be mapped. |