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