Show / Hide Table of Contents

    Class JsonRpcId

    A JSON-RPC message ID. Per JSON-RPC RFC, the ID can be of any scalar JSON type.
    Inheritance
    Object
    JsonRpcId
    Implements
    System.IEquatable<JsonRpcId>
    Namespace: XploRe.Net.JsonRpc
    Assembly: XploRe.Net.JsonRpc.dll
    Syntax
    public abstract class JsonRpcId : Object, IEquatable<JsonRpcId>

    Fields

    Name Description
    None The JSON-RPC message ID instance that represents an undefined message ID that is used by notifications and thus omitted in the actual payload.
    Null The JSON-RPC message ID instance that represents the null message ID. Although the standard allows null message IDs, their use is discouraged.

    Properties

    Name Description
    Type The type of the JSON-RPC message ID.
    Value The value of the JSON-RPC message ID.

    Methods

    Name Description
    Equals(Object)
    Equals(JsonRpcId)
    FromNumber(Double) Creates a new JsonRpcId instance from a fractional number value.
    FromNumber(Int64) Creates a new JsonRpcId instance from an integer value.
    FromObject(Object) Creates a new JsonRpcId instance from any compatible type.
    FromString(String) Creates a new JsonRpcId instance from a string value.
    GetHashCode() Returns the hash code of the Value property.
    NextSequential() Returns a new per-process unique sequential numeric JsonRpcId.
    Random() Returns a randomly generated JSON-RPC message ID.
    ToString() Returns a string representation of the JSON-RPC message ID.

    Operators

    Name Description
    Equality(JsonRpcId, JsonRpcId) Tests two JsonRpcId instances for equality.
    Implicit(Byte to JsonRpcId) Creates a new JsonRpcId instance from a Byte value.
    Implicit(Double to JsonRpcId) Creates a new JsonRpcId instance from a Double value.
    Implicit(Int16 to JsonRpcId) Creates a new JsonRpcId instance from a Int16 value.
    Implicit(Int32 to JsonRpcId) Creates a new JsonRpcId instance from a Int32 value.
    Implicit(Int64 to JsonRpcId) Creates a new JsonRpcId instance from a Int64 value.
    Implicit(SByte to JsonRpcId) Creates a new JsonRpcId instance from a SByte value.
    Implicit(Single to JsonRpcId) Creates a new JsonRpcId instance from a Single value.
    Implicit(String to JsonRpcId) Creates a new JsonRpcId instance from a String value.
    Implicit(UInt16 to JsonRpcId) Creates a new JsonRpcId instance from a UInt16 value.
    Implicit(UInt32 to JsonRpcId) Creates a new JsonRpcId instance from a UInt32 value.
    Implicit(UInt64 to JsonRpcId) Creates a new JsonRpcId instance from a UInt64 value.
    Inequality(JsonRpcId, JsonRpcId) Tests two JsonRpcId instances for inequality.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.