Class JsonPlainConverter
Encoding converter for all objects via JSON.
Implements
Namespace: Temporalio.Converters
Assembly: Temporalio.dll
Syntax
public class JsonPlainConverter : object, IEncodingConverter
Constructors
JsonPlainConverter(JsonSerializerOptions)
Initializes a new instance of the JsonPlainConverter class.
Declaration
public JsonPlainConverter(JsonSerializerOptions serializerOptions)
Parameters
Type | Name | Description |
---|---|---|
JsonSerializerOptions | serializerOptions | Serializer options. |
Properties
Encoding
Gets the encoding name this converter represents.
Declaration
public string Encoding { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Implementers must put this value on the "encoding" metadata of created payloads.
SerializerOptions
Gets the serializer options used during conversion.
Declaration
protected JsonSerializerOptions SerializerOptions { get; }
Property Value
Type | Description |
---|---|
JsonSerializerOptions |