Compartir a través de


IJsonRpcAsyncMessageFormatter.DeserializeAsync Método

Definición

Deserializa un JsonRpcMessageobjeto .

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

Lector del que se va a deserializar.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

JsonRpcMessage deserializado.

Se aplica a