From 1563700feb65bc17e9ba8cbdbb64b9db6e03f981 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Thu, 20 Nov 2014 11:14:01 -0800 Subject: [PATCH] Fix for #1539 - We're not going to do anything special when request services aren't enabled This is just removing the TODO. --- src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs b/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs index 6c3cfdd8d9..f4af06e5d5 100644 --- a/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs +++ b/src/Microsoft.AspNet.Mvc.Core/MvcRouteHandler.cs @@ -32,11 +32,7 @@ namespace Microsoft.AspNet.Mvc public async Task RouteAsync([NotNull] RouteContext context) { - // TODO: Throw an error here that's descriptive enough so that - // users understand they should call the per request scoped middleware - // or set HttpContext.Services manually var services = context.HttpContext.RequestServices; - Debug.Assert(services != null); // Verify if AddMvc was done before calling UseMvc // We use the MvcMarkerService to make sure if all the services were added.