Method NotificationWithMethod
NotificationWithMethod(String)
Creates a new
JsonRpcRequest instance with the given method name and no request ID.
Declaration
public static JsonRpcRequest NotificationWithMethod(string method)
Parameters
Type |
Name |
Description |
String |
method |
Name of RPC method. |
Returns
NotificationWithMethod<T>(String, T[])
Creates a new
JsonRpcRequest instance with the given method name, the provided positional
parameters and no request ID.
Declaration
public static JsonRpcRequest NotificationWithMethod<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
NotificationWithMethod(String, IEnumerable<Object>)
Creates a new
JsonRpcRequest instance with the given method name, the provided positional
parameters and no request ID.
Declaration
public static JsonRpcRequest NotificationWithMethod(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
NotificationWithMethod(String, ICollection<Object>)
Creates a new
JsonRpcRequest instance with the given method name, the provided positional
parameters and no request ID.
Declaration
public static JsonRpcRequest NotificationWithMethod(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
NotificationWithMethod(String, IDictionary<String, Object>)
Creates a new
JsonRpcRequest instance with the given method name, the provided named
parameters and no request ID.
Declaration
public static JsonRpcRequest NotificationWithMethod(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