Show / Hide Table of Contents

    Method InvokeAsync

    InvokeAsync<T>(IJsonRpcRequest)

    Invokes the provided JSON-RPC request and returns the received JSON-RPC response.
    Declaration
    Task<IJsonRpcResponse<T>> InvokeAsync<T>(IJsonRpcRequest request)
    Parameters
    Type Name Description
    IJsonRpcRequest request The IJsonRpcRequest instance of the method to invoke.
    Returns
    Type Description
    System.Threading.Tasks.Task<IJsonRpcResponse<T>> The received JsonRpcResponse<TResult>. If request is a notification, the returned result is generally null, unless an error occurred.
    Type Parameters
    Name Description
    T The type of the result of the expected JsonRpcResponse<TResult>.

    InvokeAsync<T>(IJsonRpcRequest, JsonRpcSerializerSettings)

    Invokes the provided JSON-RPC request and returns the received JSON-RPC response.
    Declaration
    Task<IJsonRpcResponse<T>> InvokeAsync<T>(IJsonRpcRequest request, JsonRpcSerializerSettings settings)
    Parameters
    Type Name Description
    IJsonRpcRequest request The IJsonRpcRequest instance of the method to invoke.
    JsonRpcSerializerSettings settings An optional JsonRpcSerializerSettings instance that controls serialisation.
    Returns
    Type Description
    System.Threading.Tasks.Task<IJsonRpcResponse<T>> The received JsonRpcResponse<TResult>. If request is a notification, the returned result is generally null, unless an error occurred.
    Type Parameters
    Name Description
    T The type of the result of the expected JsonRpcResponse<TResult>.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.