Class ContentTypeDelegatingMessageConverter
Inheritance
System.Object
ContentTypeDelegatingMessageConverter
Assembly: Steeltoe.Messaging.RabbitMQ.dll
Syntax
public class ContentTypeDelegatingMessageConverter : ISmartMessageConverter
Constructors
|
Edit this page
View Source
ContentTypeDelegatingMessageConverter()
Declaration
public ContentTypeDelegatingMessageConverter()
|
Edit this page
View Source
ContentTypeDelegatingMessageConverter(Dictionary<String, ISmartMessageConverter>, ISmartMessageConverter)
Declaration
public ContentTypeDelegatingMessageConverter(Dictionary<string, ISmartMessageConverter> delegates, ISmartMessageConverter defaultConverter)
Parameters
Type |
Name |
Description |
Dictionary<System.String, ISmartMessageConverter> |
delegates |
|
ISmartMessageConverter |
defaultConverter |
|
|
Edit this page
View Source
ContentTypeDelegatingMessageConverter(ISmartMessageConverter)
Declaration
public ContentTypeDelegatingMessageConverter(ISmartMessageConverter defaultConverter)
Parameters
Type |
Name |
Description |
ISmartMessageConverter |
defaultConverter |
|
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
ServiceName
Declaration
public string ServiceName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
AddDelegate(String, ISmartMessageConverter)
Declaration
public void AddDelegate(string contentType, ISmartMessageConverter messageConverter)
Parameters
Type |
Name |
Description |
System.String |
contentType |
|
ISmartMessageConverter |
messageConverter |
|
|
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
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
GetConverterForContentType(String)
Declaration
protected virtual ISmartMessageConverter GetConverterForContentType(string contentType)
Parameters
Type |
Name |
Description |
System.String |
contentType |
|
Returns
Type |
Description |
ISmartMessageConverter |
|
|
Edit this page
View Source
RemoveDelegate(String)
Declaration
public ISmartMessageConverter RemoveDelegate(string contentType)
Parameters
Type |
Name |
Description |
System.String |
contentType |
|
Returns
Type |
Description |
ISmartMessageConverter |
|
|
Edit this page
View Source
Declaration
public IMessage ToMessage(object payload, IMessageHeaders headers)
Parameters
Type |
Name |
Description |
System.Object |
payload |
|
IMessageHeaders |
headers |
|
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 |
|