Beispiel #1
0
        private void BootstrapContainer()
        {
            // configure DI
            Container.Install(new BusinessLayerInstaller());
            Container.Install(new PresentationLayerInstaller());

            // set controller factory
            var controllerFactory = new WindsorControllerFactory(Container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(controllerFactory);
        }
        private void BootstrapContainer()
        {
            container = new WindsorContainer();

            // configure DI
            container.Install(new BussinessLayerInstaller());
            container.Install(new MvcInstaller());

            // configure mapping within BL
            MappingInit.ConfigureMapping();

            // initialize default user accounts (admin, ...)
            UserAccountInit.InitializeUserAccounts(container);

            // set controller factory
            var controllerFactory = new WindsorControllerFactory(container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(controllerFactory);
        }