Show / Hide Table of Contents

    Method Serialize

    Serialize<T>(T)

    Serialises a JSON-RPC message to JSON.
    Declaration
    public static string Serialize<T>(T message)where T : IJsonRpcMessage
    Parameters
    Type Name Description
    T message The IJsonRpcMessage to serialise.
    Returns
    Type Description
    String A String with the serialised message.
    Type Parameters
    Name Description
    T The type of the message.

    Serialize<T>(T, JsonRpcSerializerSettings)

    Serialises a JSON-RPC message to JSON.
    Declaration
    public static string Serialize<T>(T message, JsonRpcSerializerSettings settings)where T : IJsonRpcMessage
    Parameters
    Type Name Description
    T message The IJsonRpcMessage to serialise.
    JsonRpcSerializerSettings settings An optional JsonRpcSerializerSettings instance to control JSON-RPC message serialisation.
    Returns
    Type Description
    String A String with the serialised message.
    Type Parameters
    Name Description
    T The type of the message.

    Serialize<T>(JsonRpcBatch<T>)

    Serialises a JSON-RPC batch to JSON.
    Declaration
    public static string Serialize<T>(JsonRpcBatch<T> batch)where T : IJsonRpcMessage
    Parameters
    Type Name Description
    JsonRpcBatch<T> batch The JsonRpcBatch<T> to serialise.
    Returns
    Type Description
    String A String with the serialised batch.
    Type Parameters
    Name Description
    T The type of the messages in the batch.

    Serialize<T>(JsonRpcBatch<T>, JsonRpcSerializerSettings)

    Serialises a JSON-RPC batch to JSON.
    Declaration
    public static string Serialize<T>(JsonRpcBatch<T> batch, JsonRpcSerializerSettings settings)where T : IJsonRpcMessage
    Parameters
    Type Name Description
    JsonRpcBatch<T> batch The JsonRpcBatch<T> to serialise.
    JsonRpcSerializerSettings settings An optional JsonRpcSerializerSettings instance to control JSON-RPC message batch serialisation.
    Returns
    Type Description
    String A String with the serialised batch.
    Type Parameters
    Name Description
    T The type of the messages in the batch.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.