示例#1
0
 /// <param name="method">Target method name</param>
 /// <param name="parameterList">Json parameters for the target method</param>
 public RpcRequest(string method, RpcParameters parameters = default)
 {
     this.Id             = null;
     this.JsonRpcVersion = JsonRpcContants.JsonRpcVersion;
     this.Method         = method;
     this.Parameters     = parameters;
 }
示例#2
0
 /// <param name="method">Target method name</param>
 /// <param name="parameterList">Json parameters for the target method</param>
 public RpcRequest(string method, RpcParameters parameters = default)
 {
     this.Id         = null;
     this.Method     = method;
     this.Parameters = parameters;
 }
示例#3
0
 /// <param name="id">Request id</param>
 /// <param name="method">Target method name</param>
 /// <param name="parameterList">Json parameters for the target method</param>
 public RpcRequest(RpcId id, string method, RpcParameters parameters = default)
 {
     this.Id         = id;
     this.Method     = method;
     this.Parameters = parameters;
 }