Exemple #1
0
        private static void BootstrapContainer()
        {
            _container = new WindsorContainer().Install(FromAssembly.This());

            var controllerFactory = new WindsorControllerFactory(_container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(controllerFactory);
        }
Exemple #2
0
        private void BootstrapContainer()
        {
            container = new WindsorContainer()
                        .Install(FromAssembly.Containing <ControllerInstaller>());

            var controllerFactory = new WindsorControllerFactory(container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(controllerFactory);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }
Exemple #6
0
        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);
        }