語言

JsonRpcMessage 類別

定義

JSON-RPC 請求或回應的基底類別。

[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
繼承
JsonRpcMessage
衍生
屬性

建構函式

名稱 Description
JsonRpcMessage()

JSON-RPC 請求或回應的基底類別。

屬性

名稱 Description
Version

取得或設定該訊息所遵循的 JSON-RPC 協定版本。

方法

名稱 Description
TryGetTopLevelProperty<T>(String, T)

從收到的訊息中取得頂層屬性,該屬性是 JSON-RPC 規範的延伸。

TrySetTopLevelProperty<T>(String, T)

在訊息中設定一個頂層屬性,作為 JSON-RPC 規範的擴展。

適用於