Method WithMethod
WithMethod(String)
Creates a new 
JsonRpcRequest instance with the given method name and the next automatic
per-process sequential request ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
  
Returns
WithMethod(String, JsonRpcId)
Creates a new 
JsonRpcRequest instance with the given method name and a specified request 
ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method, JsonRpcId id)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | JsonRpcId | 
      id | 
      ID of RPC request. | 
    
  
Returns
WithMethod<T>(String, T[])
Creates a new 
JsonRpcRequest instance with the given method name, the provided positional
parameters and the next automatic per-process sequential request ID.
 
Declaration
  public static JsonRpcRequest WithMethod<T>(string method, T[] positionalParameters)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | T[] | 
      positionalParameters | 
      Array of positional request parameters. | 
    
  
Returns
Type Parameters
WithMethod(String, IEnumerable<Object>)
Creates a new 
JsonRpcRequest instance with the given method name, the provided positional
parameters and the next automatic per-process sequential request ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method, IEnumerable<object> positionalParameters)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | System.Collections.Generic.IEnumerable<Object> | 
      positionalParameters | 
      Enumerable of positional request parameters. | 
    
  
Returns
WithMethod(String, ICollection<Object>)
Creates a new 
JsonRpcRequest instance with the given method name, the provided positional
parameters and the next automatic per-process sequential request ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method, ICollection<object> positionalParameters)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | System.Collections.Generic.ICollection<Object> | 
      positionalParameters | 
      Collection of positional request parameters. | 
    
  
Returns
WithMethod<T>(String, T[], JsonRpcId)
Creates a new 
JsonRpcRequest instance with the given method name, the provided positional
parameters and the specified request ID.
 
Declaration
  public static JsonRpcRequest WithMethod<T>(string method, T[] positionalParameters, JsonRpcId id)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | T[] | 
      positionalParameters | 
      Array of positional request parameters. | 
    
    
      | JsonRpcId | 
      id | 
      ID of RPC request. | 
    
  
Returns
Type Parameters
WithMethod(String, IEnumerable<Object>, JsonRpcId)
Creates a new 
JsonRpcRequest instance with the given method name, the provided positional
parameters and the specified request ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method, IEnumerable<object> positionalParameters, JsonRpcId id)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | System.Collections.Generic.IEnumerable<Object> | 
      positionalParameters | 
      Enumerable of positional request parameters. | 
    
    
      | JsonRpcId | 
      id | 
      ID of RPC request. | 
    
  
Returns
WithMethod(String, ICollection<Object>, JsonRpcId)
Creates a new 
JsonRpcRequest instance with the given method name, the provided positional
parameters and the specified request ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method, ICollection<object> positionalParameters, JsonRpcId id)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | System.Collections.Generic.ICollection<Object> | 
      positionalParameters | 
      Collection of positional request parameters. | 
    
    
      | JsonRpcId | 
      id | 
      ID of RPC request. | 
    
  
Returns
WithMethod(String, IDictionary<String, Object>)
Creates a new 
JsonRpcRequest instance with the given method name, the provided named
parameters and the next automatic per-process sequential request ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method, IDictionary<string, object> namedParameters)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | System.Collections.Generic.IDictionary<String, Object> | 
      namedParameters | 
      Dictionary of named request parameters. | 
    
  
Returns
WithMethod(String, IDictionary<String, Object>, JsonRpcId)
Creates a new 
JsonRpcRequest instance with the given method name, the provided named
parameters and the specified request ID.
 
Declaration
  public static JsonRpcRequest WithMethod(string method, IDictionary<string, object> namedParameters, JsonRpcId id)
 
Parameters
  
    
      | Type | 
      Name | 
      Description | 
    
  
  
    
      | String | 
      method | 
      Name of RPC method. | 
    
    
      | System.Collections.Generic.IDictionary<String, Object> | 
      namedParameters | 
      Dictionary of named request parameters. | 
    
    
      | JsonRpcId | 
      id | 
      ID of RPC request. | 
    
  
Returns