次の方法で共有


IHookableServiceJsonRpcDescriptor.WithCreateJsonRpcHook メソッド

定義

が呼び出されたときに呼び出されるフックを使用して記述子を CreateJsonRpc(IJsonRpcMessageHandler) 複製します。

public Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor WithCreateJsonRpcHook (Microsoft.VisualStudio.RpcContracts.IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate? createJsonRpcDelegate);
abstract member WithCreateJsonRpcHook : Microsoft.VisualStudio.RpcContracts.IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate -> Microsoft.ServiceHub.Framework.ServiceJsonRpcDescriptor
Public Function WithCreateJsonRpcHook (createJsonRpcDelegate As IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate) As ServiceJsonRpcDescriptor

パラメーター

createJsonRpcDelegate
IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate

または null を使用するメソッド。

戻り値

登録済みフックを使用して複製 ServiceJsonRpcDescriptor された 。

注釈

デリゲートが null を返す場合、記述子は既定のメソッドを使用します。

適用対象