IJsonRpcMessageTextFormatter.Deserialize 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.
Deserializes a sequence of bytes to a JsonRpcMessage.
public StreamJsonRpc.Protocol.JsonRpcMessage Deserialize (System.Buffers.ReadOnlySequence<byte> contentBuffer, System.Text.Encoding encoding);
abstract member Deserialize : System.Buffers.ReadOnlySequence<byte> * System.Text.Encoding -> StreamJsonRpc.Protocol.JsonRpcMessage
Public Function Deserialize (contentBuffer As ReadOnlySequence(Of Byte), encoding As Encoding) As JsonRpcMessage
Parameters
- contentBuffer
- ReadOnlySequence<Byte>
The bytes to deserialize.
- encoding
- Encoding
The encoding to read the bytes in contentBuffer
with. Must not be null.
Returns
The deserialized message.