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);
            }
        }
Exemple #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);
            }
        }