Fix for #1539 - We're not going to do anything special when request

services aren't enabled

This is just removing the TODO.
This commit is contained in:
Ryan Nowak 2014-11-20 11:14:01 -08:00
parent 9c4d5dcf5c
commit 1563700feb
1 changed files with 0 additions and 4 deletions

View File

@ -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.