Share via


JsonRpcMessage Class

Definition

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

[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
[<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))>]
type JsonRpcMessage = class
Public MustInherit Class JsonRpcMessage
Inheritance
JsonRpcMessage
Derived
Attributes

Constructors

JsonRpcMessage()

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