12 private readonly
string method;
13 private readonly
object? parameters;
62 this.version = Version;
64 this.parameters =
null;
74 : this(Version, Method, (IEnumerable)Parameters)
86 this.version = Version;
88 this.parameters = Parameters;
99 this.version = Version;
100 this.method = Method;
101 this.parameters = Parameters;
109 internal Dictionary<string, object> BuildRequest(
long? Id)
111 Dictionary<string, object> Request =
new Dictionary<string, object>();
114 Request[
"jsonrpc"] =
"2.0";
116 Request[
"method"] = this.method;
118 if (!(this.parameters is
null))
119 Request[
"params"] = this.parameters;
122 Request[
"id"] = Id.Value;
Information about a JSON-RPC request.
JsonRpcRequest(string Method, IEnumerable Parameters)
Information about a JSON-RPC request.
JsonRpcRequest(string Method, Dictionary< string, object > Parameters)
Information about a JSON-RPC request.
JsonRpcRequest(JsonRpcVersion Version, string Method, Dictionary< string, object > Parameters)
Information about a JSON-RPC request.
JsonRpcRequest(JsonRpcVersion Version, string Method, IEnumerable Parameters)
Information about a JSON-RPC request.
virtual bool IsRequest
If object represents a request.
JsonRpcRequest(JsonRpcVersion Version, string Method, params object?[] Parameters)
Information about a JSON-RPC request.
JsonRpcRequest(JsonRpcVersion Version, string Method)
Information about a JSON-RPC request.
JsonRpcRequest(string Method, params object?[] Parameters)
Information about a JSON-RPC request.
JsonRpcRequest(string Method)
Information about a JSON-RPC request.
JsonRpcVersion
JSON-RPC version