ExtensionPartServiceJsonRpcDescriptor.WithCreateJsonRpcHook Metodo

Definizione

Clona il descrittore con un hook che verrà chiamato quando viene chiamato un CreateJsonRpc(IJsonRpcMessageHandler) oggetto.

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

Parametri

createJsonRpcDelegate
IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate

Metodo da utilizzare o null.

Restituisce

Clonato ServiceJsonRpcDescriptor con l'hook registrato.

Implementazioni

Si applica a