18 implementations of IFileProvider
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileProvider.cs (1)
8public class TestFileProvider : IFileProvider
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
14internal sealed partial class ManifestStaticWebAssetFileProvider : IFileProvider
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
14 internal sealed class iOSMauiAssetFileProvider : IFileProvider
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestFileProvider.cs (1)
9public class TestFileProvider : IFileProvider
StaticContentProviderTests.cs (1)
44private sealed class InMemoryFileProvider : IFileProvider
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
279private class TestFileProvider : IFileProvider
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
14internal sealed partial class ManifestStaticWebAssetFileProvider : IFileProvider
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
8public class TestFileProvider : IFileProvider
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
CertificatePathWatcherTests.cs (2)
480private sealed class NoChangeFileProvider : IFileProvider 519private sealed class MockFileProvider : IFileProvider
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
148private sealed class TestFileProvider : IFileProvider
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
431class TestFileProvider : IFileProvider
Microsoft.Extensions.FileProviders.Abstractions (1)
NullFileProvider.cs (1)
11public class NullFileProvider : IFileProvider
Microsoft.Extensions.FileProviders.Composite (1)
CompositeFileProvider.cs (1)
15public class CompositeFileProvider : IFileProvider
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
22public class EmbeddedFileProvider : IFileProvider
ManifestEmbeddedFileProvider.cs (1)
19public class ManifestEmbeddedFileProvider : IFileProvider
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFileProvider.cs (1)
23public class PhysicalFileProvider : IFileProvider, IDisposable
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
11public class UpdateableFileProvider : IFileProvider
254 references to IFileProvider
Aspire.Dashboard.Tests (1)
BrowserSecurityHeadersMiddlewareTests.cs (1)
91public IFileProvider ContentRootFileProvider { get; set; } = default!;
Aspire.Hosting.Tests (1)
Dashboard\DashboardServiceTests.cs (1)
151public IFileProvider ContentRootFileProvider { get; set; } = default!;
Identity.DefaultUI.WebSite (4)
StartupBase.cs (4)
87var pendingProviders = new Stack<IFileProvider>(); 90while (pendingProviders.TryPop(out var currentProvider)) 98foreach (var provider in manifestStaticWebAssets.FileProviders) 104foreach (var childFileProvider in composite.FileProviders)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
97TrimAssemblyExtension(typeof(Microsoft.Extensions.FileProviders.IFileProvider).Assembly.Location),
Microsoft.AspNetCore.Components.Endpoints.Tests (11)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (2)
292public IFileProvider WebRootFileProvider { get => ContentRootFileProvider; set { } } 294public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
EndpointHtmlRendererTest.cs (1)
1776public IFileProvider ContentRootFileProvider { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
HotReloadServiceTests.cs (2)
279public IFileProvider WebRootFileProvider { get => ContentRootFileProvider; set { } } 281public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
RazorComponentEndpointDataSourceTest.cs (2)
295public IFileProvider WebRootFileProvider { get => ContentRootFileProvider; set { } } 297public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
RazorComponentEndpointInvokerTest.cs (2)
57public IFileProvider WebRootFileProvider { get => new NullFileProvider(); set => throw new NotImplementedException(); } 61public IFileProvider ContentRootFileProvider { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
RazorComponentsServiceCollectionExtensionsTest.cs (2)
142public IFileProvider WebRootFileProvider { get; set; } = new NullFileProvider(); 146public IFileProvider ContentRootFileProvider { get; set; } = new NullFileProvider();
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
84private static StaticFileOptions CreateStaticFilesOptions(IFileProvider webRootFileProvider)
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (1)
ContentEncodingNegotiatorTests.cs (1)
219var fileProviderMock = new Mock<IFileProvider>();
Microsoft.AspNetCore.Components.WebView (10)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (5)
22private readonly IFileProvider[] _fileProviders; 25public ManifestStaticWebAssetFileProvider(StaticWebAssetManifest manifest, Func<string, IFileProvider> fileProviderFactory) 27_fileProviders = new IFileProvider[manifest.ContentRoots.Length]; 38internal IFileProvider[] FileProviders => _fileProviders; 94var contentRoot = _fileProviders[pattern.ContentRoot];
StaticContentProvider.cs (2)
11private readonly IFileProvider _fileProvider; 16public StaticContentProvider(IFileProvider fileProvider, Uri appBaseUri, string hostPageRelativePath)
WebViewManager.cs (3)
44public WebViewManager(IServiceProvider provider, Dispatcher dispatcher, Uri appBaseUri, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string hostPageRelativePath) 279internal static IFileProvider UseStaticWebAssets(IFileProvider fileProvider)
Microsoft.AspNetCore.Components.WebView.Maui (7)
BlazorWebView.cs (1)
74 public virtual IFileProvider CreateFileProvider(string contentRootDir)
IBlazorWebView.cs (3)
39 /// serves files from a platform-specific location. Override this method to return a custom <see cref="IFileProvider"/> to serve assets such 44 /// <returns>Returns a <see cref="IFileProvider"/> for static assets.</returns> 45 IFileProvider CreateFileProvider(string contentRootDir);
iOS\BlazorWebViewHandler.iOS.cs (2)
178 var fileProvider = VirtualView.CreateFileProvider(contentRootDir); 208 internal IFileProvider CreateFileProvider(string contentRootDir)
iOS\IOSWebViewManager.cs (1)
40 public IOSWebViewManager(BlazorWebViewHandler blazorMauiWebViewHandler, WKWebView webview, IServiceProvider provider, Dispatcher dispatcher, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string contentRootRelativeToAppRoot, string hostPageRelativePath, ILogger logger)
Microsoft.AspNetCore.Components.WebView.Photino (1)
PhotinoWebViewManager.cs (1)
27public PhotinoWebViewManager(PhotinoWindow window, IServiceProvider provider, Dispatcher dispatcher, Uri appBaseUri, IFileProvider fileProvider, JSComponentConfigurationStore jsComponents, string hostPageRelativePath)
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\TestWebViewManager.cs (1)
13public TestWebViewManager(IServiceProvider provider, IFileProvider fileProvider)
Microsoft.AspNetCore.Components.WebView.WindowsForms (5)
BlazorWebView.cs (4)
192 var fileProvider = CreateFileProvider(contentRootDirFullPath); 247 /// serves files from disk. Override this method to return a custom <see cref="IFileProvider"/> to serve assets such 252 /// <returns>Returns a <see cref="IFileProvider"/> for static assets.</returns> 253 public virtual IFileProvider CreateFileProvider(string contentRootDir)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
90 IFileProvider fileProvider,
Microsoft.AspNetCore.Components.WebView.Wpf (5)
BlazorWebView.cs (4)
275 var fileProvider = CreateFileProvider(contentRootDirFullPath); 334 /// serves files from disk. Override this method to return a custom <see cref="IFileProvider"/> to serve assets such 339 /// <returns>Returns a <see cref="IFileProvider"/> for static assets.</returns> 340 public virtual IFileProvider CreateFileProvider(string contentRootDir)
src\BlazorWebView\src\SharedSource\WebView2WebViewManager.cs (1)
90 IFileProvider fileProvider,
Microsoft.AspNetCore.Diagnostics (4)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
36private readonly IFileProvider _fileProvider;
DeveloperExceptionPage\DeveloperExceptionPageOptions.cs (1)
35public IFileProvider? FileProvider { get; set; }
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
18private readonly IFileProvider _fileProvider; 22public ExceptionDetailsProvider(IFileProvider fileProvider, ILogger? logger, int sourceCodeLineCount)
Microsoft.AspNetCore.Grpc.Swagger.Tests (2)
Infrastructure\TestWebHostEnvironment.cs (2)
11public IFileProvider WebRootFileProvider { get; set; } 14public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.Hosting (11)
Internal\ErrorPageBuilder.cs (1)
15IFileProvider contentRootFileProvider,
Internal\HostingEnvironment.cs (2)
22public IFileProvider WebRootFileProvider { get; set; } = default!; 26public IFileProvider ContentRootFileProvider { get; set; } = default!;
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
19IFileProvider contentRootFileProvider,
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
18private readonly IFileProvider _fileProvider; 22public ExceptionDetailsProvider(IFileProvider fileProvider, ILogger? logger, int sourceCodeLineCount)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (5)
22private readonly IFileProvider[] _fileProviders; 25public ManifestStaticWebAssetFileProvider(StaticWebAssetManifest manifest, Func<string, IFileProvider> fileProviderFactory) 27_fileProviders = new IFileProvider[manifest.ContentRoots.Length]; 38internal IFileProvider[] FileProviders => _fileProviders; 94var contentRoot = _fileProviders[pattern.ContentRoot];
Microsoft.AspNetCore.Hosting.Abstractions (6)
IHostingEnvironment.cs (4)
36/// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="WebRootPath"/>. 38IFileProvider WebRootFileProvider { get; set; } 46/// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="ContentRootPath"/>. 48IFileProvider ContentRootFileProvider { get; set; }
IWebHostEnvironment.cs (2)
21/// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="WebRootPath"/>. 24IFileProvider WebRootFileProvider { get; set; }
Microsoft.AspNetCore.Hosting.Tests (13)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (13)
95var first = new Mock<IFileProvider>(); 97var second = new Mock<IFileProvider>(); 172var first = new Mock<IFileProvider>(); 174var second = new Mock<IFileProvider>(); 248var first = new Mock<IFileProvider>(); 250var second = new Mock<IFileProvider>(); 649private static (ManifestStaticWebAssetFileProvider.StaticWebAssetManifest manifest, Func<string, IFileProvider> factory) CreateTestManifest() 657Func<string, IFileProvider> factory = (string contentRoot) => 666var providerMock = new Mock<IFileProvider>(); 688var providerMock = new Mock<IFileProvider>(); 734private static (ManifestStaticWebAssetFileProvider.StaticWebAssetManifest manifest, Func<string, IFileProvider> factory) CreateTestManifestWithPattern() 741Func<string, IFileProvider> factory = (string contentRoot) => 745var providerMock = new Mock<IFileProvider>();
Microsoft.AspNetCore.Http.Results (1)
VirtualFileHttpResult.cs (1)
152internal IFileInfo GetFileInformation(IFileProvider fileProvider)
Microsoft.AspNetCore.Http.Results.Tests (8)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (8)
403var webRootFileProvider = GetFileProvider(path); 426var webRootFileProvider = GetFileProvider(expectedPath); 449var nonDiskFileProvider = new Mock<IFileProvider>(); 471var fileProvider = new Mock<IFileProvider>(); 485private static IServiceCollection CreateServices(IFileProvider webRootFileProvider) 498private static HttpContext GetHttpContext(IFileProvider webRootFileProvider) 508protected static IFileProvider GetFileProvider(string path) 517var fileProvider = new Mock<IFileProvider>();
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1612public IFileProvider ContentRootFileProvider { get; set; } = null!;
Microsoft.AspNetCore.Mvc.Core (4)
Infrastructure\VirtualFileResultExecutor.cs (2)
107var fileProvider = GetFileProvider(result, hostingEnvironment); 123internal static IFileProvider GetFileProvider(VirtualFileResult result, IWebHostEnvironment hostingEnvironment)
VirtualFileResult.cs (2)
55/// Gets or sets the <see cref="IFileProvider"/> used to resolve paths. 57public IFileProvider? FileProvider { get; set; }
Microsoft.AspNetCore.Mvc.Core.Test (16)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (8)
403var webRootFileProvider = GetFileProvider(path); 426var webRootFileProvider = GetFileProvider(expectedPath); 449var nonDiskFileProvider = new Mock<IFileProvider>(); 471var fileProvider = new Mock<IFileProvider>(); 485private static IServiceCollection CreateServices(IFileProvider webRootFileProvider) 498private static HttpContext GetHttpContext(IFileProvider webRootFileProvider) 508protected static IFileProvider GetFileProvider(string path) 517var fileProvider = new Mock<IFileProvider>();
VirtualFileResultTest.cs (8)
52var webHostFileProvider = Mock.Of<IFileProvider>(); 58var fileProvider = VirtualFileResultExecutor.GetFileProvider(result, webHostEnvironment); 68var webHostFileProvider = Mock.Of<IFileProvider>(); 69var fileProvider = Mock.Of<IFileProvider>(); 75var actual = VirtualFileResultExecutor.GetFileProvider(result, webHostEnvironment);
Microsoft.AspNetCore.Mvc.Razor (1)
Infrastructure\DefaultFileVersionProvider.cs (1)
32public IFileProvider FileProvider { get; }
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (11)
FileProviderRazorProjectFileSystem.cs (1)
25public IFileProvider FileProvider => _fileProvider.FileProvider;
MvcRazorRuntimeCompilationOptions.cs (3)
16/// Gets the <see cref="IFileProvider" /> instances used to locate Razor files. 22public IList<IFileProvider> FileProviders { get; } = new List<IFileProvider>();
PageActionDescriptorChangeProvider.cs (1)
58var fileProvider = _fileProvider.FileProvider;
RuntimeCompilationFileProvider.cs (4)
12private IFileProvider? _compositeFileProvider; 21public IFileProvider FileProvider 34private static IFileProvider GetCompositeFileProvider(MvcRazorRuntimeCompilationOptions options) 42typeof(IFileProvider).FullName);
RuntimeViewCompiler.cs (2)
29private readonly IFileProvider _fileProvider; 36IFileProvider fileProvider,
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
RuntimeCompilationFileProviderTest.cs (1)
17$"not be empty. At least one '{typeof(IFileProvider).FullName}' is required to locate a view for " +
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
264public IFileProvider WebRootFileProvider { get => ContentRootFileProvider; set { } } 266public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
Microsoft.AspNetCore.Mvc.TagHelpers (5)
FileProviderGlobbingDirectory.cs (2)
12private readonly IFileProvider _fileProvider; 18IFileProvider fileProvider,
GlobbingUrlBuilder.cs (3)
33public GlobbingUrlBuilder(IFileProvider fileProvider, IMemoryCache cache, PathString requestPathBase) 50/// The <see cref="IFileProvider"/> used to watch for changes to file globbing results. 52public IFileProvider FileProvider { get; }
Microsoft.AspNetCore.Mvc.TagHelpers.Test (28)
DefaultFileVersionProviderTest.cs (10)
26var fileProvider = GetMockFileProvider(filePath); 42var fileProvider = GetMockFileProvider( 73var fileProvider = GetMockFileProvider( 202var fileProvider = GetMockFileProvider(filePath, pathStartsWithAppBase); 218var fileProvider = GetMockFileProvider(filePath, false, true); 234var fileProvider = GetMockFileProvider(filePath); 261var fileProvider = GetMockFileProvider(filePath, requestPathBase != null); 287IFileProvider fileProvider, 300private static IFileProvider GetMockFileProvider( 314var mockFileProvider = new Mock<IFileProvider>();
GlobbingUrlBuilderTest.cs (15)
20var fileProvider = MakeFileProvider(); 36var fileProvider = MakeFileProvider(MakeDirectoryContents("site.css", "blank.css")); 208var fileProvider = MakeFileProvider(dirStructure); 228var fileProvider = MakeFileProvider(MakeDirectoryContents("site.css", "blank.css")); 249var fileProvider = MakeFileProvider(); 272var fileProvider = MakeFileProvider(MakeDirectoryContents("site.css", "blank.css")); 338var fileProvider = MakeFileProvider(MakeDirectoryContents("site.css", "blank.js", "site2.txt", "site.js")); 362var fileProvider = MakeFileProvider(MakeDirectoryContents("site.css", "blank.css")); 390var fileProvider = MakeFileProvider(MakeDirectoryContents("site.css", "blank.css")); 417var fileProvider = MakeFileProvider(MakeDirectoryContents("site.css", "blank.css")); 456private static IFileProvider MakeFileProvider(FileNode rootNode) 463var fileProvider = new Mock<IFileProvider>(MockBehavior.Strict); 472private static IDirectoryContents MakeDirectoryContents(FileNode fileNode, Mock<IFileProvider> fileProviderMock) 504private static IFileProvider MakeFileProvider(IDirectoryContents directoryContents = null) 511var fileProvider = new Mock<IFileProvider>();
ImageTagHelperTest.cs (1)
368var mockFileProvider = new Mock<IFileProvider>();
LinkTagHelperTest.cs (1)
1178var mockFileProvider = new Mock<IFileProvider>();
ScriptTagHelperTest.cs (1)
1145var mockFileProvider = new Mock<IFileProvider>();
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
312.Returns(Mock.Of<IFileProvider>());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
340public IFileProvider WebRootFileProvider { get => ContentRootFileProvider; set { } } 342public IFileProvider ContentRootFileProvider { get; set; } = CreateTestFileProvider();
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1033public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.Rewrite (7)
ApacheModRewriteOptionsExtensions.cs (2)
18/// <param name="fileProvider">The <see cref="IFileProvider"/> </param> 20public static RewriteOptions AddApacheModRewrite(this RewriteOptions options, IFileProvider fileProvider, string filePath)
IISUrlRewriteOptionsExtensions.cs (2)
20/// <param name="fileProvider">The <see cref="IFileProvider"/> </param> 24public static RewriteOptions AddIISUrlRewrite(this RewriteOptions options, IFileProvider fileProvider, string filePath, bool alwaysUseManagedServerVariables = false)
RewriteContext.cs (1)
25public IFileProvider StaticFileProvider { get; set; } = default!;
RewriteMiddleware.cs (1)
22private readonly IFileProvider _fileProvider;
RewriteOptions.cs (1)
26public IFileProvider StaticFileProvider { get; set; } = default!;
Microsoft.AspNetCore.Routing.Tests (1)
RouteHandlerOptionsTests.cs (1)
72public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\ErrorPage\ErrorPageModelBuilder.cs (1)
19IFileProvider contentRootFileProvider,
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (2)
18private readonly IFileProvider _fileProvider; 22public ExceptionDetailsProvider(IFileProvider fileProvider, ILogger? logger, int sourceCodeLineCount)
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\CertificatePathWatcher.cs (5)
16private readonly Func<string, IFileProvider?> _fileProviderFactory; 49internal CertificatePathWatcher(string contentRootPath, ILogger<CertificatePathWatcher> logger, Func<string, IFileProvider?> fileProviderFactory) 123var fileProvider = _fileProviderFactory(dir); 289private sealed class DirectoryWatchMetadata(IFileProvider fileProvider) : IDisposable 291public readonly IFileProvider FileProvider = fileProvider;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (7)
CertificatePathWatcherTests.cs (7)
482public static readonly IFileProvider Instance = new NoChangeFileProvider(); 488IDirectoryContents IFileProvider.GetDirectoryContents(string subpath) => throw new NotSupportedException(); 489IFileInfo IFileProvider.GetFileInfo(string subpath) => throw new NotSupportedException(); 490IChangeToken IFileProvider.Watch(string filter) => NoChangeChangeToken.Instance; 536IDirectoryContents IFileProvider.GetDirectoryContents(string subpath) 541IFileInfo IFileProvider.GetFileInfo(string subpath) 546IChangeToken IFileProvider.Watch(string path)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
1879public IFileProvider ContentRootFileProvider { get; set; }
Microsoft.AspNetCore.SpaServices.Extensions (5)
StaticFiles\DefaultSpaStaticFileProvider.cs (2)
16private readonly IFileProvider? _fileProvider; 45public IFileProvider? FileProvider => _fileProvider;
StaticFiles\ISpaStaticFileProvider.cs (1)
18IFileProvider? FileProvider { get; }
StaticFiles\SpaStaticFilesExtensions.cs (2)
89out var fileProviderOrDefault); 108out IFileProvider? fileProviderOrDefault)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (2)
SpaServicesExtensionsTests.cs (2)
107public IFileProvider ContentRootFileProvider { get; set; } 108public IFileProvider WebRootFileProvider { get; set; }
Microsoft.AspNetCore.StaticAssets (3)
StaticAssetEndpointFactory.cs (1)
42var fileProvider = serviceProvider.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider;
StaticAssetsInvoker.cs (2)
21private readonly IFileProvider _fileProvider; 32public StaticAssetsInvoker(StaticAssetDescriptor resource, IFileProvider fileProvider, ILogger<StaticAssetsInvoker> logger)
Microsoft.AspNetCore.StaticAssets.Tests (1)
StaticAssetsIntegrationTests.cs (1)
1052private class TestFileProvider(TestResource[] testResources) : IFileProvider
Microsoft.AspNetCore.StaticFiles (8)
DefaultFilesMiddleware.cs (1)
22private readonly IFileProvider _fileProvider;
DirectoryBrowserMiddleware.cs (1)
22private readonly IFileProvider _fileProvider;
Helpers.cs (1)
13internal static IFileProvider ResolveFileProvider(IWebHostEnvironment hostingEnv)
Infrastructure\SharedOptions.cs (1)
43public IFileProvider? FileProvider { get; set; }
Infrastructure\SharedOptionsBase.cs (1)
48public IFileProvider? FileProvider
StaticFileContext.cs (2)
23private readonly IFileProvider _fileProvider; 44public StaticFileContext(HttpContext context, StaticFileOptions options, ILogger logger, IFileProvider fileProvider, string? contentType, PathString subPath)
StaticFileMiddleware.cs (1)
22private readonly IFileProvider _fileProvider;
Microsoft.Extensions.Configuration.FileExtensions (7)
FileConfigurationExtensions.cs (6)
18/// Sets the default <see cref="IFileProvider"/> to be used for file-based providers. 23public static IConfigurationBuilder SetFileProvider(this IConfigurationBuilder builder, IFileProvider fileProvider) 33/// Gets the default <see cref="IFileProvider"/> to be used for file-based providers. 36/// <returns>The default <see cref="IFileProvider"/>.</returns> 37public static IFileProvider GetFileProvider(this IConfigurationBuilder builder) 43return (IFileProvider)provider;
FileConfigurationSource.cs (1)
19public IFileProvider? FileProvider { get; set; }
Microsoft.Extensions.Configuration.Ini (2)
IniConfigurationExtensions.cs (2)
59/// <param name="provider">The <see cref="IFileProvider"/> to use to access the file.</param> 65public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange)
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationExtensions.cs (2)
59/// <param name="provider">The <see cref="IFileProvider"/> to use to access the file.</param> 65public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange)
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationSource.cs (1)
23public IFileProvider? FileProvider { get; set; }
Microsoft.Extensions.Configuration.Xml (2)
XmlConfigurationExtensions.cs (2)
66/// <param name="provider">The <see cref="IFileProvider"/> to use to access the file.</param> 74public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange)
Microsoft.Extensions.FileProviders.Composite (21)
CompositeDirectoryContents.cs (7)
12/// Represents the result of a call composition of <see cref="IFileProvider.GetDirectoryContents(string)"/> 13/// for a list of <see cref="IFileProvider"/> and a path. 17private readonly IList<IFileProvider> _fileProviders; 25/// <see cref="IFileProvider.GetDirectoryContents(string)"/>. 27/// <param name="fileProviders">The list of <see cref="IFileProvider"/> for which the results have to be composed.</param> 29public CompositeDirectoryContents(IList<IFileProvider> fileProviders, string subpath) 43foreach (IFileProvider fileProvider in _fileProviders)
CompositeFileProvider.cs (14)
13/// Looks up files using a collection of <see cref="IFileProvider"/>. 17private readonly IFileProvider[] _fileProviders; 22/// <param name="fileProviders">The collection of <see cref="IFileProvider" /> objects.</param> 23public CompositeFileProvider(params IFileProvider[]? fileProviders) 25_fileProviders = fileProviders ?? Array.Empty<IFileProvider>(); 31/// <param name="fileProviders">The collection of <see cref="IFileProvider" /> objects.</param> 32public CompositeFileProvider(IEnumerable<IFileProvider> fileProviders) 43/// <returns>The file information. The caller must check the <see cref="IFileInfo.Exists" /> property. This is the first existing <see cref="IFileInfo"/> returned by the provided <see cref="IFileProvider"/> or a not found <see cref="IFileInfo"/> if no existing files are found.</returns> 46foreach (IFileProvider fileProvider in _fileProviders) 62/// The content is a merge of the contents of the provided <see cref="IFileProvider"/>. 75/// The change token will be notified when one of the change token returned by the provided <see cref="IFileProvider"/> is notified.</returns> 80foreach (IFileProvider fileProvider in _fileProviders) 99/// Gets the list of configured <see cref="IFileProvider" /> instances. 101public IEnumerable<IFileProvider> FileProviders => _fileProviders;
Microsoft.Extensions.FileProviders.Embedded (2)
ManifestEmbeddedFileProvider.cs (2)
46/// returned by this <see cref="IFileProvider"/>.</param> 59/// returned by this <see cref="IFileProvider"/>.</param>
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (1)
412IFileProvider contentRootFileProvider = _hostEnvironment.ContentRootFileProvider;
Internal\HostingEnvironment.cs (1)
36public IFileProvider ContentRootFileProvider { get; set; } = null!;
Microsoft.Extensions.Hosting.Abstractions (4)
IHostEnvironment.cs (2)
32/// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="ContentRootPath"/>. 34IFileProvider ContentRootFileProvider { get; set; }
IHostingEnvironment.cs (2)
37/// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="ContentRootPath"/>. 39IFileProvider ContentRootFileProvider { get; set; }
StaticFilesAuth (1)
Startup.cs (1)
112private void SetupFileServer(IApplicationBuilder builder, IFileProvider files)