27 implementations of Exists
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\TestFileProvider\TestDirectoryContent.cs (1)
18public bool Exists => true;
Builder\TestFileProvider\TestFileInfo.cs (1)
32public bool Exists
Builder\TestFileProvider\TestFileProvider.cs (1)
126public bool Exists
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
262public bool Exists => true; 286public bool Exists => _source.Exists;
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
47 public bool Exists { get; }
Microsoft.AspNetCore.Components.WebView.Test (1)
StaticContentProviderTests.cs (1)
113public bool Exists => true;
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
321public bool Exists
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
262public bool Exists => true; 286public bool Exists => _source.Exists;
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
777public bool Exists { get; set; }
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestDirectoryContent.cs (1)
18public bool Exists => true;
TestDirectoryFileInfo.cs (1)
16public bool Exists => true;
TestFileInfo.cs (1)
32public bool Exists
TestFileProvider.cs (1)
126public bool Exists
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
565bool IFileInfo.Exists => _lastModifiedTime.HasValue;
Microsoft.AspNetCore.StaticFiles.Tests (2)
StaticFileContextTest.cs (2)
179public bool Exists 236public bool Exists
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
508public bool Exists => true;
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
27public bool Exists => false;
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedResourceFileInfo.cs (1)
42public bool Exists => true;
Manifest\ManifestDirectoryInfo.cs (1)
30public bool Exists => true;
Manifest\ManifestFileInfo.cs (1)
29public bool Exists => true;
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestFileInfo.cs (1)
20public bool Exists => true;
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
38public bool Exists => _info.Exists;
PhysicalFileInfo.cs (1)
26public bool Exists => _info.Exists;
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
91public bool Exists { get; }
78 references to Exists
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitOptionsJavaScriptInitializersConfiguration.cs (1)
22if (file.Exists)
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)
216gzMock.Setup(m => m.Exists).Returns(gzipExists); 218brMock.Setup(m => m.Exists).Returns(brotliExists);
Microsoft.AspNetCore.Components.WebView (5)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (4)
100if (result.Exists && (result.IsDirectory || matcher.Match(fileCandidate).HasMatches)) 189if (!file.Exists || string.Equals(subpath, Normalize(match.Path), _fsComparison)) 217if (result.Exists) 286public bool Exists => _source.Exists;
StaticContentProvider.cs (1)
70if (fileInfo.Exists)
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
118if (fileInfo.Exists)
Microsoft.AspNetCore.Hosting (5)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
118if (fileInfo.Exists)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (4)
100if (result.Exists && (result.IsDirectory || matcher.Match(fileCandidate).HasMatches)) 189if (!file.Exists || string.Equals(subpath, Normalize(match.Path), _fsComparison)) 217if (result.Exists) 286public bool Exists => _source.Exists;
Microsoft.AspNetCore.Hosting.Tests (14)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (12)
50Assert.Equal(expectedResult, file.Exists); 118Assert.Equal(exists, file.Exists); 195Assert.Equal(exists, file.Exists); 271Assert.Equal(exists, file.Exists); 288Assert.True(file.Exists); 304Assert.False(file.Exists); 321Assert.True(file.Exists); 340Assert.True(file.Exists); 357Assert.True(file.Exists); 393Assert.True(provider.GetFileInfo("/_content/Static Web Assets.txt").Exists); 408Assert.False(file.Exists); 424Assert.False(file.Exists);
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)
109if (!fileInfo.Exists)
Microsoft.AspNetCore.Http.Results.Tests (3)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
446nonDiskFileInfo.SetupGet(fi => fi.Exists).Returns(true); 470fileInfo.SetupGet(f => f.Exists).Returns(false); 512fileInfo.SetupGet(fi => fi.Exists).Returns(true);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\VirtualFileResultExecutor.cs (1)
40if (!fileInfo.Exists)
Microsoft.AspNetCore.Mvc.Core.Test (3)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (3)
446nonDiskFileInfo.SetupGet(fi => fi.Exists).Returns(true); 470fileInfo.SetupGet(f => f.Exists).Returns(false); 512fileInfo.SetupGet(fi => fi.Exists).Returns(true);
Microsoft.AspNetCore.Mvc.Razor (2)
Infrastructure\DefaultFileVersionProvider.cs (2)
63if (!fileInfo.Exists && 72if (fileInfo.Exists)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
FileProviderRazorProjectItem.cs (1)
61public override bool Exists => FileInfo.Exists;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (6)
DefaultFileVersionProviderTest.cs (3)
175mockFile.SetupGet(f => f.Exists).Returns(true); 306existingMockFile.SetupGet(f => f.Exists).Returns(true); 312doesNotExistMockFile.SetupGet(f => f.Exists).Returns(false);
ImageTagHelperTest.cs (1)
364mockFile.SetupGet(f => f.Exists).Returns(true);
LinkTagHelperTest.cs (1)
1174mockFile.SetupGet(f => f.Exists).Returns(true);
ScriptTagHelperTest.cs (1)
1141mockFile.SetupGet(f => f.Exists).Returns(true);
Microsoft.AspNetCore.Rewrite (2)
UrlMatches\FileSizeMatch.cs (1)
16return fileInfo.Exists && fileInfo.Length > 0 ? MatchResults.EmptySuccess : MatchResults.EmptyFailure;
UrlMatches\IsFileMatch.cs (1)
15var res = context.StaticFileProvider.GetFileInfo(pattern).Exists;
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\StackTrace\ExceptionDetails\ExceptionDetailsProvider.cs (1)
118if (fileInfo.Exists)
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
210if (fileInfo.Exists)
StaticAssetsInvoker.cs (1)
85_fileProvider.GetFileInfo(_resource.AssetPath) is IFileInfo file and { Exists: true } ?
Microsoft.AspNetCore.StaticFiles (3)
DefaultFilesMiddleware.cs (1)
65if (file.Exists)
StaticFileContext.cs (2)
118if (_fileInfo.Exists) 129return _fileInfo.Exists;
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
FallbackStaticFileTest.cs (1)
126Assert.True(fileInfo.Exists);
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationProvider.cs (1)
59if (file == null || !file.Exists)
Microsoft.Extensions.FileProviders.Composite (2)
CompositeFileProvider.cs (2)
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> 49if (fileInfo != null && fileInfo.Exists)
Microsoft.Extensions.FileProviders.Embedded.Tests (18)
EmbeddedFileProviderTests.cs (7)
33Assert.False(fileInfo.Exists); 50Assert.True(fileInfo.Exists); 69Assert.False(fileInfo.Exists); 83Assert.False(fileInfo.Exists); 116Assert.True(fileInfo.Exists); 154Assert.True(fileInfo.Exists); 192Assert.True(fileInfo.Exists);
FileInfoComparer.cs (2)
25return x.Exists == y.Exists &&
ManifestEmbeddedFileProviderTests.cs (9)
29Assert.True(jqueryValidate.Exists); 36Assert.True(jqueryMin.Exists); 43Assert.True(siteCss.Exists); 66Assert.True(jqueryValidate.Exists); 73Assert.True(jqueryMin.Exists); 80Assert.True(siteCss.Exists); 165Assert.True(jqueryValidate.Exists); 188Assert.True(jqueryValidate.Exists); 439Assert.True(jqueryValidate.Exists);
Microsoft.Extensions.FileProviders.Physical (1)
PhysicalFileProvider.cs (1)
262/// <returns>The file information. Caller must check the <see cref="IFileInfo.Exists"/> property.</returns>
StaticFilesAuth (1)
Startup.cs (1)
144if (fileInfo.Exists)