Method Deserialize
Deserialize<T>(String)
Constructs a JSON-RPC message from a provided JSON string.
Declaration
public static T Deserialize<T>(string message)where T : JsonRpcMessage
Parameters
Type |
Name |
Description |
String |
message |
The JSON string to deserialise. |
Returns
Type |
Description |
T |
A new JSON-RPC message instance constructed from the provided JSON string. |
Type Parameters
Name |
Description |
T |
The type of the JSON-RPC message to construct. |
Deserialize<T>(String, JsonRpcSerializerSettings)
Constructs a JSON-RPC message from a provided JSON string.
Declaration
public static T Deserialize<T>(string message, JsonRpcSerializerSettings settings)where T : JsonRpcMessage
Parameters
Returns
Type |
Description |
T |
A new JSON-RPC message instance constructed from the provided JSON string. |
Type Parameters
Name |
Description |
T |
The type of the JSON-RPC message to construct. |
Deserialize<T>(StreamReader)
Constructs a JSON-RPC message from a provided stream reader.
Declaration
public static T Deserialize<T>(StreamReader reader)where T : JsonRpcMessage
Parameters
Returns
Type |
Description |
T |
A new JSON-RPC message instance constructed from the provided JSON string. |
Type Parameters
Name |
Description |
T |
The type of the JSON-RPC message to construct. |
Deserialize<T>(StreamReader, JsonRpcSerializerSettings)
Constructs a JSON-RPC message from a provided stream reader.
Declaration
public static T Deserialize<T>(StreamReader reader, JsonRpcSerializerSettings settings)where T : JsonRpcMessage
Parameters
Returns
Type |
Description |
T |
A new JSON-RPC message instance constructed from the provided JSON string. |
Type Parameters
Name |
Description |
T |
The type of the JSON-RPC message to construct. |