From a665e4882684b78021e1dfca12d53883cc1267e1 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Tue, 9 Jun 2015 14:58:58 -0700 Subject: [PATCH] A new pattern for adding multi-registration services This is some cleanup of how we add multi-registration services to avoid duplication when calling AddMvcServices multiple times. Also improved tests to be more clear, and to verify all of our special cases explicitly. --- src/Microsoft.AspNet.Mvc/MvcServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Mvc/MvcServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Mvc/MvcServiceCollectionExtensions.cs index 64d2f3dacd..117dc317b6 100644 --- a/src/Microsoft.AspNet.Mvc/MvcServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNet.Mvc/MvcServiceCollectionExtensions.cs @@ -417,4 +417,4 @@ namespace Microsoft.Framework.DependencyInjection routeOptions => routeOptions.ConstraintMap.Add("exists", typeof(KnownRouteValueConstraint))); } } -} \ No newline at end of file +}