語言

JsonRpcProxyOptions 類別

定義

這些選項可以自訂動態產生的客戶端代理物件如何呼叫實例。JsonRpc

public class JsonRpcProxyOptions
type JsonRpcProxyOptions = class
Public Class JsonRpcProxyOptions
繼承
JsonRpcProxyOptions

建構函式

名稱 Description
JsonRpcProxyOptions()

初始化 JsonRpcProxyOptions 類別的新執行個體。

JsonRpcProxyOptions(JsonRpcProxyOptions)

初始化該類別的新實例 JsonRpcProxyOptions ,並以從另一個實例初始化的屬性。

屬性

名稱 Description
EventNameTransform

取得或設定一個函式,取用 CLR 事件名稱並回傳通知中使用的 RPC 事件名稱。 此方法適用於為所有事件添加前綴,或將其設定為「駱駝式」事件。

MethodNameTransform

取得或設定一個函式,該函式取用 CLR 方法名稱並回傳 RPC 方法名稱。 此方法適合為所有方法加前綴,或將其變成駝背式。

ServerRequiresNamedArguments

取得或設定一個值,指示用戶端代理是否會傳遞命名參數(例如 ARGS 物件),而非預設的位置參數(例如 args 陣列)。

適用於