Method CreateResponse
CreateResponse<T>(IJsonRpcRequest, T)
Creates a new JsonRpcResponse<TResult> instance with the same JSON-RPC ID as this
JsonRpcRequest and the provided result object.
Declaration
public static JsonRpcResponse<T> CreateResponse<T>(this IJsonRpcRequest request, T result)
Parameters
Type | Name | Description |
---|---|---|
IJsonRpcRequest | request | This IJsonRpcRequest instance. |
T | result | The result object of the response. |
Returns
Type | Description |
---|---|
JsonRpcResponse<T> | A JSON-RPC response with a matching ID that contains the provided result object. |
Type Parameters
Name | Description |
---|---|
T | The type of the result parameter. |