Partilhar via


IJsonRpcAsyncMessageFormatter.DeserializeAsync Método

Definição

Desserializa um JsonRpcMessage.

public System.Threading.Tasks.ValueTask<StreamJsonRpc.Protocol.JsonRpcMessage> DeserializeAsync (System.IO.Pipelines.PipeReader reader, System.Threading.CancellationToken cancellationToken);
abstract member DeserializeAsync : System.IO.Pipelines.PipeReader * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<StreamJsonRpc.Protocol.JsonRpcMessage>
Public Function DeserializeAsync (reader As PipeReader, cancellationToken As CancellationToken) As ValueTask(Of JsonRpcMessage)

Parâmetros

reader
PipeReader

O leitor do qual desserializar.

cancellationToken
CancellationToken

Um token de cancelamento.

Retornos

O JsonRpcMessage desserializado.

Aplica-se a