Table of Contents

Interface IJsonRpcAsyncMessageTextFormatter

Namespace
StreamJsonRpc
Assembly
StreamJsonRpc.dll

An interface that offers JsonRpcMessage serialization to an IBufferWriter<T> and asynchronous deserialization and formats messages as JSON (text).

public interface IJsonRpcAsyncMessageTextFormatter : IJsonRpcAsyncMessageFormatter, IJsonRpcMessageTextFormatter, IJsonRpcMessageFormatter
Inherited Members

Methods

DeserializeAsync(PipeReader, Encoding, CancellationToken)

Deserializes a sequence of bytes to a JsonRpcMessage.

ValueTask<JsonRpcMessage> DeserializeAsync(PipeReader reader, Encoding encoding, CancellationToken cancellationToken)

Parameters

reader PipeReader

The reader to deserialize from.

encoding Encoding

The encoding to read the bytes from reader with. Must not be null.

cancellationToken CancellationToken

A cancellation token.

Returns

ValueTask<JsonRpcMessage>

The deserialized message.