ExtensionPartServiceJsonRpcDescriptor.WithCreateJsonRpcHook 方法

定义

使用在调用 时 CreateJsonRpc(IJsonRpcMessageHandler) 将调用的挂钩克隆描述符。

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

参数

createJsonRpcDelegate
IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate

利用 或 null 的方法。

返回

使用已注册的挂钩克隆 ServiceJsonRpcDescriptor 的 。

实现

适用于