public static void Config() { var container = new WindsorContainer(); UomBootstrapper.Config(container); var castleActivator = new CastleControllerActivator(container); GlobalConfiguration.Configuration .Services.Replace(typeof(IHttpControllerActivator), castleActivator); }
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)); }