Table of Contents

Class GenericMessageConverter

Namespace
Steeltoe.Messaging.Converter
Assembly
Steeltoe.Messaging.MessagingBase.dll
public class GenericMessageConverter : SimpleMessageConverter, IMessageConverter, IServiceNameAware
Inheritance
GenericMessageConverter
Implements
Inherited Members

Constructors

GenericMessageConverter()

public GenericMessageConverter()

GenericMessageConverter(IConversionService)

public GenericMessageConverter(IConversionService conversionService)

Parameters

conversionService IConversionService

Methods

FromMessage(IMessage, Type)

Convert the payload of a message to a typed object.

public override object FromMessage(IMessage message, Type targetClass)

Parameters

message IMessage

the input message

targetClass Type

the target type for the conversion

Returns

object

the result of the conversion