Class AbstractMessageConverter
Inheritance
System.Object
AbstractMessageConverter
Assembly: Steeltoe.Messaging.RabbitMQ.dll
Syntax
public abstract class AbstractMessageConverter : ISmartMessageConverter
Constructors
|
Edit this page
View Source
AbstractMessageConverter(ILogger)
Declaration
protected AbstractMessageConverter(ILogger logger = null)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
Fields
|
Edit this page
View Source
_logger
Declaration
protected readonly ILogger _logger
Field Value
Properties
|
Edit this page
View Source
CreateMessageIds
Declaration
public bool CreateMessageIds { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
ServiceName
Declaration
public abstract string ServiceName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
Declaration
protected virtual IMessage CreateMessage(object payload, IMessageHeaders messageProperties)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IMessageHeaders |
messageProperties |
|
Returns
Type |
Description |
IMessage |
|
|
Edit this page
View Source
Declaration
protected abstract IMessage CreateMessage(object payload, IMessageHeaders messageProperties, object conversionHint)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IMessageHeaders |
messageProperties |
|
System.Object |
conversionHint |
|
Returns
Type |
Description |
IMessage |
|
|
Edit this page
View Source
FromMessage(IMessage, Type)
Declaration
public object FromMessage(IMessage message, Type targetClass)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Type |
targetClass |
|
Returns
Type |
Description |
System.Object |
|
|
Edit this page
View Source
FromMessage(IMessage, Type, Object)
Declaration
public abstract object FromMessage(IMessage message, Type targetClass, object conversionHint)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Type |
targetClass |
|
System.Object |
conversionHint |
|
Returns
Type |
Description |
System.Object |
|
|
Edit this page
View Source
FromMessage<T>(IMessage)
Declaration
public T FromMessage<T>(IMessage message)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Returns
Type Parameters
|
Edit this page
View Source
FromMessage<T>(IMessage, Object)
Declaration
public T FromMessage<T>(IMessage message, object conversionHint)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
System.Object |
conversionHint |
|
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public IMessage ToMessage(object payload, IMessageHeaders messageProperties)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IMessageHeaders |
messageProperties |
|
Returns
Type |
Description |
IMessage |
|
|
Edit this page
View Source
Declaration
public IMessage ToMessage(object payload, IMessageHeaders headers, object conversionHint)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IMessageHeaders |
headers |
|
System.Object |
conversionHint |
|
Returns
Type |
Description |
IMessage |
|