49 references to PhysicalFileProvider
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
288var manifestProvider = new ManifestStaticWebAssetFileProvider(manifest, (path) => new PhysicalFileProvider(path));
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindow.cs (1)
49var fileProvider = new PhysicalFileProvider(contentRootDir);
Microsoft.AspNetCore.Diagnostics.Tests (3)
ExceptionDetailsProviderTest.cs (3)
60using (var provider = new PhysicalFileProvider(rootPath)) 84using (var provider = new PhysicalFileProvider(rootPath)) 255new PhysicalFileProvider(Directory.GetCurrentDirectory()),
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.Hosting.Tests (5)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (5)
44contentRoot => new PhysicalFileProvider(contentRoot)); 390var provider = new ManifestStaticWebAssetFileProvider(manifest, root => new PhysicalFileProvider(root)); 541var provider = new ManifestStaticWebAssetFileProvider(manifest, root => new PhysicalFileProvider(root)); 582var provider = new ManifestStaticWebAssetFileProvider(manifest, root => new PhysicalFileProvider(root)); 640contentRoot => new PhysicalFileProvider(contentRoot));
Microsoft.AspNetCore.Server.IIS (1)
StartupHook.cs (1)
53new PhysicalFileProvider(contentRoot),
Microsoft.AspNetCore.SpaServices.Extensions (1)
StaticFiles\DefaultSpaStaticFileProvider.cs (1)
41_fileProvider = new PhysicalFileProvider(absoluteRootPath);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
FallbackStaticFileTest.cs (1)
48FileProvider = new PhysicalFileProvider(Path.Combine(environment.WebRootPath, "SubFolder")),
Microsoft.AspNetCore.StaticFiles.Tests (23)
DefaultFilesMiddlewareTests.cs (6)
60using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 83using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 126using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 208using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 255using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 310using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
DirectoryBrowserMiddlewareTests.cs (7)
81using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 100using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 141using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 214using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 258using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 308using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 356using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
StaticFileMiddlewareTests.cs (10)
121using (var fileProvider = new PhysicalFileProvider(AppContext.BaseDirectory)) 177using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 213using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)); 253using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)); 296using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)); 340using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 388using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, "."))) 444using var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, ".")); 470using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir))) 530using (var fileProvider = new PhysicalFileProvider(Path.Combine(AppContext.BaseDirectory, baseDir)))
Microsoft.Extensions.Configuration.FileExtensions (3)
FileConfigurationExtensions.cs (2)
46return new PhysicalFileProvider(AppContext.BaseDirectory ?? string.Empty); 60return builder.SetFileProvider(new PhysicalFileProvider(basePath));
FileConfigurationSource.cs (1)
88FileProvider = 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)
353/// constructor <seealso cref="PhysicalFileProvider(string)" />.
Microsoft.Extensions.Hosting (1)
HostBuilder.cs (1)
247var physicalFileProvider = new PhysicalFileProvider(hostingEnvironment.ContentRootPath);
StaticFilesAuth (1)
Startup.cs (1)
86var files = new PhysicalFileProvider(Path.Combine(env.ContentRootPath, "PrivateFiles"));