示例#1
0
        private void CreateIoCContainerAndRegisterAllDependencies()
        {
            _container = new WindsorContainer().Install(FromAssembly.This());
            var mvcControllerFactory = new WindsorControllerFactory(Container.Kernel);

            ControllerBuilder.Current.SetControllerFactory(mvcControllerFactory);
            var setup = new IoCInitializer(Container);

            setup.RegisterAll();
        }