ExtensionPartServiceJsonRpcDescriptor.WithCreateJsonRpcHook 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用在调用 时 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 的 。