18 implementations of GetFileInfo
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Builder\TestFileProvider\TestFileProvider.cs (1)
71public virtual IFileInfo GetFileInfo(string subpath)
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
154public IFileInfo GetFileInfo(string subpath)
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
26 public IFileInfo GetFileInfo(string subpath)
Microsoft.AspNetCore.Components.WebView.Test (2)
Infrastructure\TestFileProvider.cs (1)
16public IFileInfo GetFileInfo(string subpath)
StaticContentProviderTests.cs (1)
60public IFileInfo GetFileInfo(string subpath)
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
293public IFileInfo GetFileInfo(string subpath)
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
154public IFileInfo GetFileInfo(string subpath)
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestFileProvider.cs (1)
71public virtual IFileInfo GetFileInfo(string subpath)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
CertificatePathWatcherTests.cs (2)
489IFileInfo IFileProvider.GetFileInfo(string subpath) => throw new NotSupportedException(); 541IFileInfo IFileProvider.GetFileInfo(string subpath)
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileContextTest.cs (1)
162public IFileInfo GetFileInfo(string subpath)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
444public IFileInfo GetFileInfo(string subpath) => new TestFile("TestDirectory");
Microsoft.Extensions.FileProviders.Abstractions (1)
NullFileProvider.cs (1)
25public IFileInfo GetFileInfo(string subpath) => new NotFoundFileInfo(subpath);
Microsoft.Extensions.FileProviders.Composite (1)
CompositeFileProvider.cs (1)
44public IFileInfo GetFileInfo(string subpath)
Microsoft.Extensions.FileProviders.Embedded (2)
EmbeddedFileProvider.cs (1)
82public IFileInfo GetFileInfo(string subpath)
ManifestEmbeddedFileProvider.cs (1)
100public IFileInfo GetFileInfo(string subpath)
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFileProvider.cs (1)
263public IFileInfo GetFileInfo(string subpath)
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
55public IFileInfo GetFileInfo(string subpath)
73 references to GetFileInfo
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitOptionsJavaScriptInitializersConfiguration.cs (1)
21var file = _environment.WebRootFileProvider.GetFileInfo($"{_environment.ApplicationName}.modules.json");
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ContentEncodingNegotiator.cs (1)
117_webHostEnvironment.WebRootFileProvider.GetFileInfo(context.Request.Path + extension).Exists;
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (2)
ContentEncodingNegotiatorTests.cs (2)
220fileProviderMock.Setup(f => f.GetFileInfo("/_framework/blazor.boot.json.gz")).Returns(gzMock.Object); 221fileProviderMock.Setup(f => f.GetFileInfo("/_framework/blazor.boot.json.br")).Returns(brMock.Object);
Microsoft.AspNetCore.Components.WebView (4)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (3)
138var file = _fileProviders[match.ContentRoot].GetFileInfo(match.Path); 188var file = _fileProviders[match.ContentRoot].GetFileInfo(match.Path); 216var result = _fileProviders[pattern.ContentRoot].GetFileInfo(candidatePath);
StaticContentProvider.cs (1)
69var fileInfo = _fileProvider.GetFileInfo(relativePath);
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
117var fileInfo = _fileProvider.GetFileInfo(stackFrame.File);
Microsoft.AspNetCore.Hosting (4)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
117var fileInfo = _fileProvider.GetFileInfo(stackFrame.File);
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (3)
138var file = _fileProviders[match.ContentRoot].GetFileInfo(match.Path); 188var file = _fileProviders[match.ContentRoot].GetFileInfo(match.Path); 216var result = _fileProviders[pattern.ContentRoot].GetFileInfo(candidatePath);
Microsoft.AspNetCore.Hosting.Tests (19)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (17)
96first.Setup(s => s.GetFileInfo("icon.png")).Returns(new TestFileInfo() { Name = "icon.png", Exists = true }); 98second.Setup(s => s.GetFileInfo("hero.gif")).Returns(new TestFileInfo() { Name = "hero.gif", Exists = true }); 173first.Setup(s => s.GetFileInfo("icon.png")).Returns(new TestFileInfo() { Name = "icon.png", Exists = true }); 175second.Setup(s => s.GetFileInfo("hero.gif")).Returns(new TestFileInfo() { Name = "hero.gif", Exists = true }); 249first.Setup(s => s.GetFileInfo("Subdir")).Returns(new TestFileInfo() { Name = "Subdir", Exists = true }); 251second.Setup(s => s.GetFileInfo("hero.gif")).Returns(new TestFileInfo() { Name = "hero.gif", Exists = true }); 673providerMock.Setup(p => p.GetFileInfo("different")).Returns(new NotFoundFileInfo("different")); 674providerMock.Setup(p => p.GetFileInfo("file.js")).Returns(file); 675providerMock.Setup(p => p.GetFileInfo("js")).Returns(js); 676providerMock.Setup(p => p.GetFileInfo("styles.css")).Returns(styles); 677providerMock.Setup(p => p.GetFileInfo("js/project-transitive-dep.js")).Returns(transitiveDep); 678providerMock.Setup(p => p.GetFileInfo("js/project-transitive-dep.v4.js")).Returns(transitiveDepV4); 699providerMock.Setup(p => p.GetFileInfo("js")).Returns(js); 700providerMock.Setup(p => p.GetFileInfo("css")).Returns(css); 701providerMock.Setup(p => p.GetFileInfo("css/site.css")).Returns(site); 702providerMock.Setup(p => p.GetFileInfo("js/project-direct-dep.js")).Returns(projectDirectDep); 746providerMock.Setup(p => p.GetFileInfo("other.html")).Returns(otherHtml);
WebHostTests.cs (2)
849Assert.True(env.WebRootFileProvider.GetFileInfo("TextFile.txt").Exists); 855Assert.True(env1.WebRootFileProvider.GetFileInfo("TextFile.txt").Exists);
Microsoft.AspNetCore.Http.Results (1)
VirtualFileHttpResult.cs (1)
160var fileInfo = fileProvider.GetFileInfo(normalizedPath);
Microsoft.AspNetCore.Http.Results.Tests (3)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
450nonDiskFileProvider.Setup(fp => fp.GetFileInfo(It.IsAny<string>())).Returns(nonDiskFileInfo.Object); 472fileProvider.Setup(f => f.GetFileInfo(path)).Returns(fileInfo.Object); 518fileProvider.Setup(fp => fp.GetFileInfo(path))
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\VirtualFileResultExecutor.cs (1)
119var fileInfo = fileProvider.GetFileInfo(normalizedPath);
Microsoft.AspNetCore.Mvc.Core.Test (3)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
450nonDiskFileProvider.Setup(fp => fp.GetFileInfo(It.IsAny<string>())).Returns(nonDiskFileInfo.Object); 472fileProvider.Setup(f => f.GetFileInfo(path)).Returns(fileInfo.Object); 518fileProvider.Setup(fp => fp.GetFileInfo(path))
Microsoft.AspNetCore.Mvc.Razor (2)
Infrastructure\DefaultFileVersionProvider.cs (2)
61var fileInfo = FileProvider.GetFileInfo(resolvedPath); 69fileInfo = FileProvider.GetFileInfo(requestPathBaseRelativePath);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
FileProviderRazorProjectFileSystem.cs (1)
35var fileInfo = FileProvider.GetFileInfo(path);
Microsoft.AspNetCore.Mvc.TagHelpers (2)
FileProviderGlobbingDirectory.cs (2)
76return new FileProviderGlobbingDirectory(_fileProvider, _fileProvider.GetFileInfo(path), this); 81return new FileProviderGlobbingFile(_fileProvider.GetFileInfo(path), this);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
DefaultFileVersionProviderTest.cs (7)
55mockFileProvider.Verify(f => f.GetFileInfo(It.IsAny<string>()), Times.Once()); 63mockFileProvider.Verify(f => f.GetFileInfo(It.IsAny<string>()), Times.Once()); 85mockFileProvider.Verify(f => f.GetFileInfo(It.IsAny<string>()), Times.Once()); 93mockFileProvider.Verify(f => f.GetFileInfo(It.IsAny<string>()), Times.Once()); 317mockFileProvider.Setup(fp => fp.GetFileInfo(filePath)).Returns(doesNotExistMockFile.Object); 318mockFileProvider.Setup(fp => fp.GetFileInfo(It.Is<string>(str => str != filePath))) 323mockFileProvider.Setup(fp => fp.GetFileInfo(It.IsAny<string>()))
ImageTagHelperTest.cs (1)
371mockFileProvider.Setup(fp => fp.GetFileInfo(It.IsAny<string>()))
LinkTagHelperTest.cs (1)
1181mockFileProvider.Setup(fp => fp.GetFileInfo(It.IsAny<string>()))
ScriptTagHelperTest.cs (1)
1148mockFileProvider.Setup(fp => fp.GetFileInfo(It.IsAny<string>()))
Microsoft.AspNetCore.Rewrite (5)
ApacheModRewriteOptionsExtensions.cs (1)
25var fileInfo = fileProvider.GetFileInfo(filePath);
IISUrlRewriteOptionsExtensions.cs (1)
29var file = fileProvider.GetFileInfo(filePath);
UrlMatches\FileSizeMatch.cs (1)
15var fileInfo = context.StaticFileProvider.GetFileInfo(input);
UrlMatches\IsDirectoryMatch.cs (1)
15var res = context.StaticFileProvider.GetFileInfo(pattern).IsDirectory;
UrlMatches\IsFileMatch.cs (1)
15var res = context.StaticFileProvider.GetFileInfo(pattern).Exists;
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
117var fileInfo = _fileProvider.GetFileInfo(stackFrame.File);
Microsoft.AspNetCore.StaticAssets (4)
Development\StaticAssetDevelopmentRuntimeHandler.cs (3)
44var fileInfo = context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(asset.AssetPath); 95var fileInfo = _context.RequestServices.GetRequiredService<IWebHostEnvironment>().WebRootFileProvider.GetFileInfo(_asset.AssetPath); 209var fileInfo = environment.WebRootFileProvider.GetFileInfo(ctx.Request.Path);
StaticAssetsInvoker.cs (1)
85_fileProvider.GetFileInfo(_resource.AssetPath) is IFileInfo file and { Exists: true } ?
Microsoft.AspNetCore.StaticFiles (2)
DefaultFilesMiddleware.cs (1)
63var file = _fileProvider.GetFileInfo(subpath.Value + defaultFile);
StaticFileContext.cs (1)
117_fileInfo = _fileProvider.GetFileInfo(SubPath);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
FallbackStaticFileTest.cs (1)
124var fileInfo = environment.WebRootFileProvider.GetFileInfo(filePath);
StaticFileMiddlewareTests.cs (2)
158var fileInfo = hostingEnvironment.WebRootFileProvider.GetFileInfo(Path.GetFileName(requestUrl)); 200var fileInfo = hostingEnvironment.WebRootFileProvider.GetFileInfo(Path.GetFileName(requestUrl));
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
58IFileInfo? file = Source.FileProvider?.GetFileInfo(Source.Path ?? string.Empty);
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationProvider.cs (1)
110=> Source.FileProvider?.GetFileInfo("/")?.PhysicalPath ?? "<Unknown>";
Microsoft.Extensions.FileProviders.Composite (1)
CompositeFileProvider.cs (1)
48IFileInfo fileInfo = fileProvider.GetFileInfo(subpath);