16 instantiations of PhysicalFileProvider
aspire (1)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
163using var fileProvider = new PhysicalFileProvider(_backchannelsDirectory);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
258 return new PhysicalFileProvider(contentRootDir);
Microsoft.AspNetCore.Components.WebView.Wpf (1)
BlazorWebView.cs (1)
345 return new PhysicalFileProvider(contentRootDir);
Microsoft.AspNetCore.Hosting (5)
Internal\HostingEnvironmentExtensions.cs (4)
24hostingEnvironment.ContentRootFileProvider = new PhysicalFileProvider(hostingEnvironment.ContentRootPath); 48hostingEnvironment.WebRootFileProvider = new PhysicalFileProvider(hostingEnvironment.WebRootPath); 75hostingEnvironment.ContentRootFileProvider = baseEnvironment?.ContentRootFileProvider ?? new PhysicalFileProvider(hostingEnvironment.ContentRootPath); 99hostingEnvironment.WebRootFileProvider = new PhysicalFileProvider(hostingEnvironment.WebRootPath);
StaticWebAssets\StaticWebAssetsLoader.cs (1)
41(contentRoot) => new PhysicalFileProvider(contentRoot));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\CertificatePathWatcher.cs (1)
35? new PhysicalFileProvider(dir, ExclusionFilters.None)
Microsoft.Extensions.Configuration.FileExtensions (3)
FileConfigurationExtensions.cs (2)
46return new PhysicalFileProvider(AppContext.BaseDirectory ?? string.Empty); 60return builder.SetFileProvider(new PhysicalFileProvider(basePath));
FileConfigurationSource.cs (1)
80FileProvider = new PhysicalFileProvider(directory);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationBuilderExtensions.cs (1)
52source.FileProvider = new PhysicalFileProvider(directoryPath);
Microsoft.Extensions.Configuration.UserSecrets (1)
UserSecretsConfigurationExtensions.cs (1)
184? new PhysicalFileProvider(directoryPath)
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFileProvider.cs (1)
347/// constructor <see cref="PhysicalFileProvider(string)" />.
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
247var physicalFileProvider = new PhysicalFileProvider(hostingEnvironment.ContentRootPath);
15 references to PhysicalFileProvider
aspire (1)
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
163using var fileProvider = new PhysicalFileProvider(_backchannelsDirectory);
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageOptions.cs (1)
33/// If <c>null</c> <see cref="DeveloperExceptionPageMiddleware" /> will use a <see cref="PhysicalFileProvider"/>.
Microsoft.Extensions.Configuration.UserSecrets (1)
UserSecretsConfigurationExtensions.cs (1)
183PhysicalFileProvider? fileProvider = Directory.Exists(directoryPath)
Microsoft.Extensions.FileProviders.Physical (5)
PhysicalFileProvider.cs (5)
39/// Initializes a new instance of the <see cref="PhysicalFileProvider"/> class at the given root directory. 48/// Initializes a new instance of the <see cref="PhysicalFileProvider"/> class at the given root directory. 68/// Gets or sets a value that determines if this instance of <see cref="PhysicalFileProvider"/> 76/// By default, <see cref="PhysicalFileProvider"/> uses <see cref="FileSystemWatcher"/> to listen to file change events 106/// Gets or sets a value that determines if this instance of <see cref="PhysicalFileProvider"/>
Microsoft.Extensions.Hosting (7)
HostApplicationBuilder.cs (1)
166(HostingEnvironment hostingEnvironment, PhysicalFileProvider physicalFileProvider) = HostBuilder.CreateHostingEnvironment(Configuration);
HostBuilder.cs (4)
39private PhysicalFileProvider? _defaultProvider; 227internal static (HostingEnvironment, PhysicalFileProvider) CreateHostingEnvironment(IConfiguration hostConfiguration) 247var physicalFileProvider = new PhysicalFileProvider(hostingEnvironment.ContentRootPath); 296PhysicalFileProvider defaultFileProvider,
Internal\Host.cs (2)
28private readonly PhysicalFileProvider _defaultProvider; 38PhysicalFileProvider defaultProvider,