Show / Hide Table of Contents

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.

    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 Description
    JsonRpcRequest New JsonRpcRequest instance.
    Type Parameters
    Name Description
    T

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.

    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 Description
    JsonRpcRequest New JsonRpcRequest instance.
    Type Parameters
    Name Description
    T

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.

    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
    Type Description
    JsonRpcRequest New JsonRpcRequest instance.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.