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:
parent
9c4d5dcf5c
commit
1563700feb
|
|
@ -32,11 +32,7 @@ namespace Microsoft.AspNet.Mvc
|
||||||
|
|
||||||
public async Task RouteAsync([NotNull] RouteContext context)
|
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;
|
var services = context.HttpContext.RequestServices;
|
||||||
Debug.Assert(services != null);
|
|
||||||
|
|
||||||
// Verify if AddMvc was done before calling UseMvc
|
// Verify if AddMvc was done before calling UseMvc
|
||||||
// We use the MvcMarkerService to make sure if all the services were added.
|
// We use the MvcMarkerService to make sure if all the services were added.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue