public static IWindsorContainer Bootstrap() { XmlConfigurator.Configure(); var container = new WindsorContainer(); container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel, true)); container.Install(new ControllerRegistry()); container.Install(new BuildScreenRegistry()); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); return container; }
public static IWindsorContainer Bootstrap() { XmlConfigurator.Configure(); var container = new WindsorContainer(); container.Kernel.Resolver.AddSubResolver(new CollectionResolver(container.Kernel, true)); container.Install(new ControllerRegistry()); container.Install(new BuildScreenRegistry()); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); return(container); }