예제 #1
0
        public static IWindsorContainer Initialize()
        {
            var container = new WindsorContainer().Install(FromAssembly.This());

            var controllerFactory = new WindsorControllerFactory(container.Kernel);
            ControllerBuilder.Current.SetControllerFactory(controllerFactory);

            RegisterHandlers(new CastleWindsorServiceLocator(container));

            return container;
        }
예제 #2
0
        public static IWindsorContainer Initialize()
        {
            var container = new WindsorContainer().Install(FromAssembly.This());

            var controllerFactory = new WindsorControllerFactory(container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(controllerFactory);

            RegisterHandlers(new CastleWindsorServiceLocator(container));

            return(container);
        }