File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
test/WebSites/Identity.DefaultUI.WebSite Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 8
8
using Microsoft . EntityFrameworkCore ;
9
9
using Microsoft . Extensions . Configuration ;
10
10
using Microsoft . Extensions . DependencyInjection ;
11
+ using Microsoft . Extensions . FileProviders ;
11
12
12
13
namespace Identity . DefaultUI . WebSite
13
14
{
@@ -44,7 +45,14 @@ public virtual void ConfigureServices(IServiceCollection services)
44
45
. AddRoles < IdentityRole > ( )
45
46
. AddEntityFrameworkStores < TContext > ( ) ;
46
47
47
- services . AddMvc ( ) ;
48
+ services . AddMvc ( )
49
+ . AddRazorOptions ( ro =>
50
+ {
51
+ // We do this to avoid file descriptor exhaustion in our functional tests
52
+ // due to Razor Pages using a file watcher.
53
+ ro . FileProviders . Clear ( ) ;
54
+ ro . FileProviders . Add ( new CompositeFileProvider ( new [ ] { new NullFileProvider ( ) } ) ) ;
55
+ } ) ;
48
56
}
49
57
50
58
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
You can’t perform that action at this time.
0 commit comments