JsonRpcMessage Class

Definition

The base class for a JSON-RPC request or response.

C#
[System.Runtime.Serialization.DataContract]
[System.Runtime.Serialization.KnownType(typeof(StreamJsonRpc.Protocol.JsonRpcRequest))]
[System.Runtime.Serialization.KnownType(typeof(StreamJsonRpc.Protocol.JsonRpcResult))]
[System.Runtime.Serialization.KnownType(typeof(StreamJsonRpc.Protocol.JsonRpcError))]
public abstract class JsonRpcMessage
Inheritance
JsonRpcMessage
Derived
Attributes

Constructors

Properties

Version

Gets or sets the version of the JSON-RPC protocol that this message conforms to.

Methods

TryGetTopLevelProperty<T>(String, T)

Retrieves a top-level property from an incoming message that is an extension to the JSON-RPC specification.

TrySetTopLevelProperty<T>(String, T)

Sets a top-level property in the message that is an extension to JSON-RPC specification.

Applies to

Toode Versioonid
StreamJsonRpc 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9