Reacting to ApplicationServices removal from HttpContext

This commit is contained in:
John Luo 2015-11-19 09:40:46 -08:00
parent 06b8248ff0
commit 825f82d7e0
1 changed files with 2 additions and 4 deletions

View File

@ -26,8 +26,7 @@ namespace Microsoft.AspNet.Routing
var loggerFactory = new TestLoggerFactory(sink, enabled: true);
var httpContext = new DefaultHttpContext();
httpContext.ApplicationServices = new ServiceProvider();
httpContext.RequestServices = httpContext.ApplicationServices;
httpContext.RequestServices = new ServiceProvider();
RequestDelegate next = (c) =>
{
@ -58,8 +57,7 @@ namespace Microsoft.AspNet.Routing
var loggerFactory = new TestLoggerFactory(sink, enabled: true);
var httpContext = new DefaultHttpContext();
httpContext.ApplicationServices = new ServiceProvider();
httpContext.RequestServices = httpContext.ApplicationServices;
httpContext.RequestServices = new ServiceProvider();
RequestDelegate next = (c) =>
{