Merge branch 'rel/2.0.0-preview1' into dev

This commit is contained in:
Pavel Krymets 2017-04-27 08:44:02 -07:00
commit 791d69509a
1 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,10 @@ namespace Microsoft.AspNetCore
logging.AddDebug();
})
.UseIISIntegration()
.UseDefaultServiceProvider((context, options) =>
{
options.ValidateScopes = context.HostingEnvironment.IsDevelopment();
})
.ConfigureServices(services =>
{
services.AddSingleton<IStartupFilter, WebHostStartupFilter>();