private InstanceItemHookFactory(object instance, IBoxedItemHook adaptedInstance) { _instance = instance; _adaptedInstance = adaptedInstance; }
private FunctionItemHookFactory(Func <object, object, CancellationToken, Task <object> > hook) { _hook = new FunctionItemHook(hook); }