Show / Hide Table of Contents

    Constructor JsonRpcResponse

    JsonRpcResponse(JsonRpcId, JsonRpcError, Object)

    Initialises a new JsonRpcResponse instance.
    Declaration
    public JsonRpcResponse(JsonRpcId id, JsonRpcError error, object result)
    Parameters
    Type Name Description
    JsonRpcId id The JSON-RPC ID of the response.
    JsonRpcError error The JSON-RPC response error object if an error occurred during the request.
    Object result The JSON-RPC response result object if the request succeeded.
    Exceptions
    Type Condition
    ArgumentException Either error or result must be defined, not both.

    JsonRpcResponse(JsonRpcId, String, JsonRpcError, Object)

    Initialises a new JsonRpcResponse instance.
    Declaration
    public JsonRpcResponse(JsonRpcId id, string protocolVersion, JsonRpcError error, object result)
    Parameters
    Type Name Description
    JsonRpcId id The JSON-RPC ID of the response.
    String protocolVersion The JSON-RPC version of the response.
    JsonRpcError error The JSON-RPC response error object if an error occurred during the request.
    Object result The JSON-RPC response result object if the request succeeded.
    Exceptions
    Type Condition
    ArgumentException Either error or result must be defined, not both.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.