IHookableServiceJsonRpcDescriptor.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 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
Parameters
- createJsonRpcDelegate
- IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate
Method to utilize or null.
Returns
A cloned ServiceJsonRpcDescriptor with the registered hook.
Remarks
If delegate returns null, the descriptor will use its default method.