Interface IHeaderMapper<T>
Generic strategy interface for mapping MessageHeaders to and from other types of objects.
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface IHeaderMapper<in T>
Type Parameters
Ttype of the instance to and from which headers will be mapped
Methods
FromHeaders(IMessageHeaders, T)
Map from the given MessageHeaders to the specified target message.
void FromHeaders(IMessageHeaders headers, T target)
Parameters
headersIMessageHeadersthe incoming message headers
targetTthe native target message
ToHeaders(T)
Map from the given target message to abstracted MessageHeaders.
IMessageHeaders ToHeaders(T source)
Parameters
sourceTthe native target message
Returns
- IMessageHeaders
the mapped message headers