共用方式為


IJsonRpcMessageFormatter.Serialize 方法

定義

序列化 JsonRpcMessage

public void Serialize (System.Buffers.IBufferWriter<byte> contentBuffer, StreamJsonRpc.Protocol.JsonRpcMessage message);
public void Serialize (System.Buffers.IBufferWriter<byte> bufferWriter, StreamJsonRpc.Protocol.JsonRpcMessage message);
abstract member Serialize : System.Buffers.IBufferWriter<byte> * StreamJsonRpc.Protocol.JsonRpcMessage -> unit
abstract member Serialize : System.Buffers.IBufferWriter<byte> * StreamJsonRpc.Protocol.JsonRpcMessage -> unit
Public Sub Serialize (contentBuffer As IBufferWriter(Of Byte), message As JsonRpcMessage)
Public Sub Serialize (bufferWriter As IBufferWriter(Of Byte), message As JsonRpcMessage)

參數

contentBufferbufferWriter
IBufferWriter<Byte>

序列化位元組的接收者。

message
JsonRpcMessage

要序列化的訊息。

適用於