Udostępnij za pośrednictwem


IHookableServiceJsonRpcDescriptor.WithCreateJsonRpcHook Metoda

Definicja

Klonuje deskryptor z hakiem, który zostanie wywołany, gdy element jest wywoływany CreateJsonRpc(IJsonRpcMessageHandler) .

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

Parametry

createJsonRpcDelegate
IHookableServiceJsonRpcDescriptor.CreateJsonRpcDelegate

Metoda wykorzystania lub wartości null.

Zwraca

Sklonowany ServiceJsonRpcDescriptor z zarejestrowanym hakiem.

Uwagi

Jeśli delegat zwróci wartość null, deskryptor użyje jego domyślnej metody.

Dotyczy