共用方式為


IJsonRpcAsyncMessageFormatter.DeserializeAsync 方法

定義

還原序列化 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)

參數

reader
PipeReader

要還原序列化的讀取器。

cancellationToken
CancellationToken

取消語彙基元。

傳回

已還原序列化的 JsonRpcMessage

適用於