Class JsonRpcRequestExtensions
Provides status methods and response factories for JsonRpcRequest instances.
Namespace: XploRe.Net.JsonRpc
Assembly: XploRe.Net.JsonRpc.dll
Syntax
public static class JsonRpcRequestExtensions : Object
Methods
Name | Description |
---|---|
CreateResponse<T>(IJsonRpcRequest, T) | Creates a new JsonRpcResponse<TResult> instance with the same JSON-RPC ID as this JsonRpcRequest and the provided result object. |
CreateResponseWithError(IJsonRpcRequest, Int32, String) | Creates a new JsonRpcResponse instance with the same JSON-RPC ID as this JsonRpcRequest and the provided error details. |
CreateResponseWithError(IJsonRpcRequest, Int32, String, Object) | Creates a new JsonRpcResponse instance with the same JSON-RPC ID as this JsonRpcRequest and the provided error details. |
CreateResponseWithError(IJsonRpcRequest, JsonRpcError) | Creates a new JsonRpcResponse instance with the same JSON-RPC ID as this JsonRpcRequest and the provided error details. |
CreateResponseWithError<T>(IJsonRpcRequest, Int32, String) | Creates a new JsonRpcResponse<TResult> instance with the same JSON-RPC ID as this JsonRpcRequest and the provided error details. |
CreateResponseWithError<T>(IJsonRpcRequest, Int32, String, Object) | Creates a new JsonRpcResponse<TResult> instance with the same JSON-RPC ID as this JsonRpcRequest and the provided error details. |
CreateResponseWithError<T>(IJsonRpcRequest, JsonRpcError) | Creates a new JsonRpcResponse<TResult> instance with the same JSON-RPC ID as this JsonRpcRequest and the provided error details. |
IsInternal(IJsonRpcRequest) | Determines whether the invoked method is a RPC-internal or extension method. |
IsNotification(IJsonRpcRequest) | Determines whether the request is a notification, i.e. doesn't contain a JSON-RPC message ID and will generate no response from the server. |