Example #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         = new RpcId();
     this.Method     = method;
     this.Parameters = parameters;
 }
Example #2
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;
 }