public static IWindsorContainer CurrentContainer()
        {
            var bs = new ComponentsBootsrapper();
            bs.Intialize();

            Current = bs.container;

            return Current;
        }
예제 #2
0
        public static void SetCurrentContainer()
        {
            var bs = new ComponentsBootsrapper();
            CurrentContainer = bs.Intialize();

            CurrentContainer.Install(FromAssembly.This());

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