IJsonRpcMessageFormatter.Serialize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serializes a 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)
Parameters
- contentBufferbufferWriter
- IBufferWriter<Byte>
The receiver of the serialized bytes.
- message
- JsonRpcMessage
The message to serialize.