React to breaking change in aspnet/Mvc

This commit is contained in:
Nate McMaster 2018-11-21 17:43:50 -08:00
Родитель 781ca09033
Коммит 8003a5550e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: A778D9601BD78810
1 изменённых файлов: 1 добавлений и 8 удалений

Просмотреть файл

@ -45,14 +45,7 @@ namespace Identity.DefaultUI.WebSite
.AddRoles<IdentityRole>()
.AddEntityFrameworkStores<TContext>();
services.AddMvc()
.AddRazorOptions(ro =>
{
// We do this to avoid file descriptor exhaustion in our functional tests
// due to Razor Pages using a file watcher.
ro.FileProviders.Clear();
ro.FileProviders.Add(new CompositeFileProvider(new[] { new NullFileProvider() }));
});
services.AddMvc();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.