示例#1
0
        public static void Config()
        {
            var container = new WindsorContainer();

            UomBootstrapper.Config(container);

            var castleActivator = new CastleControllerActivator(container);

            GlobalConfiguration.Configuration
            .Services.Replace(typeof(IHttpControllerActivator), castleActivator);
        }
示例#2
0
        public static void Config()
        {
            var container = new WindsorContainer();

            UomBootstrapper.Config(container);
            FrameworkBootstrapper.Config(container, "DBConnection");

            var castleActivator = new CastleControllerActivator(container);

            GlobalConfiguration.Configuration.Services.Replace(typeof(IHttpControllerActivator), castleActivator);
            GlobalConfiguration.Configuration.Services.Replace(typeof(IHttpControllerSelector),
                                                               new CqsControllerSelector(GlobalConfiguration.Configuration));
        }