Class CompositeMessageConverter
Inheritance
System.Object
CompositeMessageConverter
Implements
IServiceNameAware
Assembly: Steeltoe.Messaging.MessagingBase.dll
Syntax
public class CompositeMessageConverter : object, ISmartMessageConverter, IMessageConverter
Constructors
|
Edit this page
View Source
CompositeMessageConverter(ICollection<IMessageConverter>)
Declaration
public CompositeMessageConverter(ICollection<IMessageConverter> converters)
Parameters
Fields
|
Edit this page
View Source
DEFAULT_SERVICE_NAME
Declaration
public const string DEFAULT_SERVICE_NAME = null
Field Value
Type |
Description |
System.String |
|
Properties
|
Edit this page
View Source
Converters
Declaration
public List<IMessageConverter> Converters { get; }
Property Value
|
Edit this page
View Source
ServiceName
Declaration
public string ServiceName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
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 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
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 headers)
Parameters
Returns
|
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
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Implements
IServiceNameAware