Class JsonRpcId
A JSON-RPC message ID. Per JSON-RPC RFC, the ID can be of any scalar JSON type.
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. |