Share via


IHookableServiceJsonRpcDescriptor.WithCreateJsonRpcHook Method

Definition

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.

Applies to