Table of Contents

Class ObjectToJsonTransformer

Namespace
Steeltoe.Integration.Transformer
Assembly
Steeltoe.Integration.IntegrationBase.dll
public class ObjectToJsonTransformer : AbstractTransformer, ITransformer
Inheritance
ObjectToJsonTransformer
Implements
Inherited Members

Constructors

ObjectToJsonTransformer(IApplicationContext, Type)

public ObjectToJsonTransformer(IApplicationContext context, Type resultType = null)

Parameters

context IApplicationContext
resultType Type

Properties

ContentType

public string ContentType { get; set; }

Property Value

string

DefaultCharset

public Encoding DefaultCharset { get; set; }

Property Value

Encoding

ResultType

public Type ResultType { get; set; }

Property Value

Type

Settings

public JsonSerializerSettings Settings { get; set; }

Property Value

JsonSerializerSettings

Methods

DoTransform(IMessage)

protected override object DoTransform(IMessage message)

Parameters

message IMessage

Returns

object