Show / Hide Table of Contents

    Method CreateResponse

    CreateResponse<T>(IJsonRpcRequest, T)

    Creates a new JsonRpcResponse<TResult> instance with the same JSON-RPC ID as this JsonRpcRequest and the provided result object.
    Declaration
    public static JsonRpcResponse<T> CreateResponse<T>(this IJsonRpcRequest request, T result)
    Parameters
    Type Name Description
    IJsonRpcRequest request This IJsonRpcRequest instance.
    T result The result object of the response.
    Returns
    Type Description
    JsonRpcResponse<T> A JSON-RPC response with a matching ID that contains the provided result object.
    Type Parameters
    Name Description
    T The type of the result parameter.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.