private InstanceRequestHookFactory(object instance, IBoxedRequestHook adaptedInstance) { _instance = instance; _adaptedInstance = adaptedInstance; }
private FunctionRequestHookFactory(Func <object, CancellationToken, Task> hook) { _hook = new FunctionRequestHook(hook); }