Поделиться через


IJsonRpcAsyncMessageTextFormatter Интерфейс

Определение

Интерфейс, который предлагает JsonRpcMessage сериализацию для IBufferWriter<T> десериализации и асинхронной десериализации и форматирует сообщения как JSON (текст).

public interface IJsonRpcAsyncMessageTextFormatter : StreamJsonRpc.IJsonRpcAsyncMessageFormatter, StreamJsonRpc.IJsonRpcMessageTextFormatter
type IJsonRpcAsyncMessageTextFormatter = interface
    interface IJsonRpcAsyncMessageFormatter
    interface IJsonRpcMessageFormatter
    interface IJsonRpcMessageTextFormatter
Public Interface IJsonRpcAsyncMessageTextFormatter
Implements IJsonRpcAsyncMessageFormatter, IJsonRpcMessageTextFormatter
Производный
Реализации

Свойства

Encoding

Возвращает или задает кодировку, используемую для сериализации методов, которые не принимают явные Encodingданные.

(Унаследовано от IJsonRpcMessageTextFormatter)

Методы

Deserialize(ReadOnlySequence<Byte>)

Десериализует объект JsonRpcMessage.

(Унаследовано от IJsonRpcMessageFormatter)
Deserialize(ReadOnlySequence<Byte>, Encoding)

Десериализует последовательность байтов в .JsonRpcMessage

(Унаследовано от IJsonRpcMessageTextFormatter)
DeserializeAsync(PipeReader, CancellationToken)

Десериализует объект JsonRpcMessage.

(Унаследовано от IJsonRpcAsyncMessageFormatter)
DeserializeAsync(PipeReader, Encoding, CancellationToken)

Десериализует последовательность байтов в .JsonRpcMessage

GetJsonText(JsonRpcMessage)
Устаревшие..

Возвращает представление JSON для данного сообщения для целей трассировки.

(Унаследовано от IJsonRpcMessageFormatter)
Serialize(IBufferWriter<Byte>, JsonRpcMessage)

Сериализует объект JsonRpcMessage.

(Унаследовано от IJsonRpcMessageFormatter)

Применяется к