public Func<object> GetTypeFactory(Type key) { return () => generator.CreateInterfaceProxyWithoutTarget(key, new BasicInterceptor()); }