コード例 #1
0
ファイル: Bootstrapper.cs プロジェクト: iozag/Buildscreen
       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;
       }
コード例 #2
0
        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);
        }