Ejemplo n.º 1
0
        private static void BootstrapContainer()
        {
            container = new WindsorContainer()
                        .Install(FromAssembly.This());
            var controllerFactory = new WindsorControllerFactory(container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(controllerFactory);
        }
Ejemplo n.º 2
0
        private static void BootstrapContainer()
        {
            container = new WindsorContainer();
            container.Install(new DataInstaller());
            container.Install(new Installer());

            var controllerFactory = new WindsorControllerFactory(container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(controllerFactory);
        }