ExtensionPartServiceJsonRpcDescriptor.WithCreateJsonRpcHook Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Clones the descriptor with a hook that will be called when a CreateJsonRpc(IJsonRpcMessageHandler) is called.
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
Parameters
- createJsonRpcDelegate
- IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate
Method to utilize or null.
Returns
A cloned ServiceJsonRpcDescriptor with the registered hook.