Class JsonMessageConverter
Inheritance
System.Object
JsonMessageConverter
Assembly: Steeltoe.Messaging.RabbitMQ.dll
Syntax
public class JsonMessageConverter : AbstractMessageConverter
Constructors
|
Edit this page
View Source
JsonMessageConverter(ILogger<JsonMessageConverter>)
Declaration
public JsonMessageConverter(ILogger<JsonMessageConverter> logger = null)
Parameters
Fields
|
Edit this page
View Source
DEFAULT_CLASSID_FIELD_NAME
Declaration
public const string DEFAULT_CLASSID_FIELD_NAME = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
DEFAULT_CONTENT_CLASSID_FIELD_NAME
Declaration
public const string DEFAULT_CONTENT_CLASSID_FIELD_NAME = null
Field Value
Type |
Description |
System.String |
|
|
Edit this page
View Source
DEFAULT_KEY_CLASSID_FIELD_NAME
Declaration
public const string DEFAULT_KEY_CLASSID_FIELD_NAME = null
Field Value
Type |
Description |
System.String |
|
|
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
AssumeSupportedContentType
Declaration
public bool AssumeSupportedContentType { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
DefaultCharset
Declaration
public Encoding DefaultCharset { get; set; }
Property Value
Type |
Description |
Encoding |
|
|
Edit this page
View Source
Precedence
Declaration
public TypePrecedence Precedence { get; set; }
Property Value
Type |
Description |
TypePrecedence |
|
|
Edit this page
View Source
ServiceName
Declaration
public override string ServiceName { get; set; }
Property Value
Type |
Description |
System.String |
|
Overrides
|
Edit this page
View Source
Settings
Declaration
public JsonSerializerSettings Settings { get; set; }
Property Value
Type |
Description |
JsonSerializerSettings |
|
|
Edit this page
View Source
SupportedContentType
Declaration
public MimeType SupportedContentType { get; set; }
Property Value
Type |
Description |
MimeType |
|
|
Edit this page
View Source
TypeMapper
Declaration
public ITypeMapper TypeMapper { get; set; }
Property Value
Type |
Description |
ITypeMapper |
|
Methods
|
Edit this page
View Source
Declaration
protected override IMessage CreateMessage(object objectToConvert, IMessageHeaders headers, object convertionHint)
Parameters
Type |
Name |
Description |
System.Object |
objectToConvert |
|
IMessageHeaders |
headers |
|
System.Object |
convertionHint |
|
Returns
Type |
Description |
IMessage |
|
Overrides
|
Edit this page
View Source
FromMessage(IMessage, Type, Object)
Declaration
public override object FromMessage(IMessage message, Type targetType, object conversionHint)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
Type |
targetType |
|
System.Object |
conversionHint |
|
Returns
Type |
Description |
System.Object |
|
Overrides