Table of Contents

Enum ServiceJsonRpcDescriptor.Formatters

Namespace
Microsoft.ServiceHub.Framework
Assembly
Microsoft.ServiceHub.Framework.dll

The formats that JSON-RPC can be serialized to.

public enum ServiceJsonRpcDescriptor.Formatters

Fields

MessagePack = 1

Format messages as MessagePack for a high throughput, compact binary representation using MessagePackFormatter (the MessagePack-CSharp serializer).

UTF8 = 0

Format messages with UTF-8 text for a human readable JSON representation using the Newtonsoft.Json.JsonSerializer (i.e. JSON.NET) serializer. This can be wire-protocol compatible with UTF8SystemTextJson if the Newtonsoft.Json.JsonSerializerSettings are configured to be compatible with System.Text.Json.

UTF8SystemTextJson = 2

Format messages with UTF-8 text for a human readable JSON representation using the JsonSerializer serializer. This can be wire-protocol compatible with UTF8 if the JsonSerializerOptions are configured to be compatible with JSON.NET.