1 implementation of WebRootFileProvider
Microsoft.AspNetCore.Hosting (1)
Internal\HostingEnvironment.cs (1)
22
public IFileProvider
WebRootFileProvider
{ get; set; } = default!;
2 writes to WebRootFileProvider
Microsoft.AspNetCore.Hosting (2)
Internal\HostingEnvironmentExtensions.cs (2)
48
hostingEnvironment.
WebRootFileProvider
= new PhysicalFileProvider(hostingEnvironment.WebRootPath);
52
hostingEnvironment.
WebRootFileProvider
= new NullFileProvider();
2 references to WebRootFileProvider
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
855
Assert.True(env1.
WebRootFileProvider
.GetFileInfo("TextFile.txt").Exists);
Microsoft.AspNetCore.Rewrite (1)
RewriteOptions.cs (1)
24
/// Defaults to <see cref="IHostingEnvironment.
WebRootFileProvider
"/>.