private static void BootstrapContainer() { _container = new WindsorContainer().Install(FromAssembly.This()); var controllerFactory = new WindsorControllerFactory(_container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }
private void BootstrapContainer() { container = new WindsorContainer() .Install(FromAssembly.Containing <ControllerInstaller>()); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }
private static void BootstrapContainer() { container = new WindsorContainer(); container.Install(new DataInstaller()); container.Install(new BL.DataInstaller()); var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }
private void BootstrapContainer() { // configure DI Container.Install(new BLInstaller()); Container.Install(new PresentationLayerInstaller()); // set controller factory var controllerFactory = new WindsorControllerFactory(Container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }
private static void BootstrapContainer() { _container = new WindsorContainer(); _container.Kernel.Resolver.AddSubResolver(new CollectionResolver(_container.Kernel)); _container.Install(FromAssembly.This()); var controllerFactory = new WindsorControllerFactory(_container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }
private void BootstrapContainer() { container = new WindsorContainer(); // configure DI container.Install(new BLInstaller()); container.Install(new MvcInstaller()); // configure mapping within BL Mapping.ConfigureMapping(); // initialize default user accounts (admin, ...) //UserAccountInit.InitializeUserAccounts(container); // set controller factory var controllerFactory = new WindsorControllerFactory(container.Kernel); ControllerBuilder.Current.SetControllerFactory(controllerFactory); }