public ApiHttpConfiguration()
        {
            var lowercaseRouteConstraint = new LowercaseRouteConstraint();
            Services.Replace(typeof(IHttpControllerActivator), new FileAuditManagerHttpControllerActivator());

            ConfigureApplicationController();
            ConfigureDeploymentController();
            ConfigureAuditController();
            ConfigureHealthController();

            foreach (var route in Routes)
            {
                route.Constraints.Add("url", lowercaseRouteConstraint);
            }
        }
Ejemplo n.º 2
0
        public ApiHttpConfiguration()
        {
            var lowercaseRouteConstraint = new LowercaseRouteConstraint();

            Services.Replace(typeof(IHttpControllerActivator), new FileAuditManagerHttpControllerActivator());

            ConfigureApplicationController();
            ConfigureDeploymentController();
            ConfigureAuditController();
            ConfigureHealthController();

            foreach (var route in Routes)
            {
                route.Constraints.Add("url", lowercaseRouteConstraint);
            }
        }