Interface IHeaderMapper<T>
Generic strategy interface for mapping MessageHeaders to and from other types of objects.
Namespace: Steeltoe.Messaging.Support
Assembly: Steeltoe.Messaging.Abstractions.dll
Syntax
public interface IHeaderMapper<in T>
Type Parameters
Name | Description |
---|---|
T | type of the instance to and from which headers will be mapped |
Methods
| Edit this page View SourceFromHeaders(IMessageHeaders, T)
Map from the given MessageHeaders to the specified target message.
Declaration
void FromHeaders(IMessageHeaders headers, T target)
Parameters
Type | Name | Description |
---|---|---|
IMessageHeaders | headers | the incoming message headers |
T | target | the native target message |
ToHeaders(T)
Map from the given target message to abstracted MessageHeaders.
Declaration
IMessageHeaders ToHeaders(T source)
Parameters
Type | Name | Description |
---|---|---|
T | source | the native target message |
Returns
Type | Description |
---|---|
IMessageHeaders | the mapped message headers |