Transient Lifestyle requires HttpContext?
问题 I am registering my component like this: public static void Register(IWindsorContainer container) { container.Register(Classes.FromAssembly(Assembly.GetAssembly(typeof(GenericBaseRepository))) .InSameNamespaceAs<GenericBaseRepository>() .WithService.DefaultInterfaces() .LifestyleTransient()); } I am then resolving it in a piece of code that has no HttpContext: var baseRepository = ContainerManager.Container.Resolve<IBaseRepository>(); (IBaseRepository being an interface implemented by