Added default MiddlewareFactory service as scoped (#940)

- This is a follow up to changes made in HttpAbstractions to
support a new IMiddleware interface
This commit is contained in:
David Fowler 2017-02-14 15:58:18 -08:00 committed by GitHub
parent 118216b20a
commit ce5838ac57
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ namespace Microsoft.AspNetCore.Hosting
services.AddTransient<IApplicationBuilderFactory, ApplicationBuilderFactory>();
services.AddTransient<IHttpContextFactory, HttpContextFactory>();
services.AddScoped<IMiddlewareFactory, MiddlewareFactory>();
services.AddOptions();
// Conjure up a RequestServices