Method Serialize
Serialize<T>(T)
Serialises a JSON-RPC message to JSON.
Declaration
public static string Serialize<T>(T message)where T : IJsonRpcMessage
Parameters
Returns
Type |
Description |
String |
A String with the serialised message. |
Type Parameters
Name |
Description |
T |
The type of the message. |
Serialize<T>(T, JsonRpcSerializerSettings)
Serialises a JSON-RPC message to JSON.
Declaration
public static string Serialize<T>(T message, JsonRpcSerializerSettings settings)where T : IJsonRpcMessage
Parameters
Returns
Type |
Description |
String |
A String with the serialised message. |
Type Parameters
Name |
Description |
T |
The type of the message. |
Serialize<T>(JsonRpcBatch<T>)
Serialises a JSON-RPC batch to JSON.
Declaration
public static string Serialize<T>(JsonRpcBatch<T> batch)where T : IJsonRpcMessage
Parameters
Returns
Type Parameters
Name |
Description |
T |
The type of the messages in the batch. |
Serialize<T>(JsonRpcBatch<T>, JsonRpcSerializerSettings)
Serialises a JSON-RPC batch to JSON.
Declaration
public static string Serialize<T>(JsonRpcBatch<T> batch, JsonRpcSerializerSettings settings)where T : IJsonRpcMessage
Parameters
Returns
Type Parameters
Name |
Description |
T |
The type of the messages in the batch. |