Inheritance
System.Object
AbstractHeaderMapper<T>
Assembly: Steeltoe.Messaging.MessagingBase.dll
public abstract class AbstractHeaderMapper<T> : object, IHeaderMapper<T>
Type Parameters
Constructors
|
Edit this page
View Source
Declaration
protected AbstractHeaderMapper(ILogger logger = null)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
Fields
|
Edit this page
View Source
Declaration
protected readonly ILogger _logger
Field Value
Properties
|
Edit this page
View Source
Declaration
public string InboundPrefix { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public string OutboundPrefix { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
Declaration
protected virtual string FromHeaderName(string headerName)
Parameters
Type |
Name |
Description |
System.String |
headerName |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public abstract void FromHeaders(IMessageHeaders headers, T target)
Parameters
|
Edit this page
View Source
Declaration
protected virtual V GetHeaderIfAvailable<V>(IDictionary<string, object> headers, string name)
Parameters
Type |
Name |
Description |
IDictionary<System.String, System.Object> |
headers |
|
System.String |
name |
|
Returns
Type Parameters
|
Edit this page
View Source
Declaration
protected virtual string ToHeaderName(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
public abstract IMessageHeaders ToHeaders(T source)
Parameters
Type |
Name |
Description |
T |
source |
|
Returns
Implements