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