Class JsonProtoConverter
Encoding converter for protobuf JSON data.
Implements
Namespace: Temporalio.Converters
Assembly: Temporalio.dll
Syntax
public class JsonProtoConverter : object, IEncodingConverter
Constructors
JsonProtoConverter()
Initializes a new instance of the JsonProtoConverter class.
Declaration
public JsonProtoConverter()
JsonProtoConverter(JsonFormatter, JsonParser)
Initializes a new instance of the JsonProtoConverter class.
Declaration
public JsonProtoConverter(JsonFormatter formatter, JsonParser parser)
Parameters
Type | Name | Description |
---|---|---|
JsonFormatter | formatter | Formatter used when converting to JSON. |
JsonParser | parser | Parser used when converting from JSON. |
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.
Formatter
Gets the formatter used when converting to JSON.
Declaration
protected JsonFormatter Formatter { get; }
Property Value
Type | Description |
---|---|
JsonFormatter |