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,则描述符将使用其默认方法。

适用于