27 implementations of Name
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\TestFileProvider\TestDirectoryContent.cs (1)
24public string Name { get; }
Builder\TestFileProvider\TestFileInfo.cs (1)
18public string Name { get; set; }
Builder\TestFileProvider\TestFileProvider.cs (1)
158public string Name
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
272public string Name { get; } 296public string Name { get; }
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
50 public string Name { get; }
Microsoft.AspNetCore.Components.WebView.Test (1)
StaticContentProviderTests.cs (1)
119public string Name => Path.GetFileName(_filePath);
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
353public string Name
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
272public string Name { get; } 296public string Name { get; }
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
783public string Name { get; set; }
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestDirectoryContent.cs (1)
24public string Name { get; }
TestDirectoryFileInfo.cs (1)
12public string Name { get; set; }
TestFileInfo.cs (1)
18public string Name { get; set; }
TestFileProvider.cs (1)
158public string Name
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
570string IFileInfo.Name => throw new NotSupportedException();
Microsoft.AspNetCore.StaticFiles.Tests (2)
StaticFileContextTest.cs (2)
211public string Name 250public string Name { get; set; }
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
519public string Name => _name;
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
45public string Name { get; }
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedResourceFileInfo.cs (1)
68public string Name { get; }
Manifest\ManifestDirectoryInfo.cs (1)
36public string Name => Directory.Name;
Manifest\ManifestFileInfo.cs (1)
35public string Name => ManifestFile.Name;
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestFileInfo.cs (1)
26public string Name => _name;
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
49public string Name => _info.Name;
PhysicalFileInfo.cs (1)
35public string Name => _info.Name;
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
95public string Name { get; set; }
56 references to Name
Microsoft.AspNetCore.Components.WebView (7)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (6)
99var fileCandidate = string.IsNullOrEmpty(candidateDirectoryPath) ? result.Name : $"{candidateDirectoryPath}/{result.Name}"; 137files.RemoveWhere(f => string.Equals(match.Path, f.Name, _fsComparison)); 303public bool Equals(IFileInfo? x, IFileInfo? y) => string.Equals(x?.Name, y?.Name, _fsComparison); 305public int GetHashCode(IFileInfo obj) => obj.Name.GetHashCode(_fsComparison);
StaticContentProvider.cs (1)
73contentType = GetResponseContentTypeOrDefault(fileInfo.Name);
Microsoft.AspNetCore.Hosting (6)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (6)
99var fileCandidate = string.IsNullOrEmpty(candidateDirectoryPath) ? result.Name : $"{candidateDirectoryPath}/{result.Name}"; 137files.RemoveWhere(f => string.Equals(match.Path, f.Name, _fsComparison)); 303public bool Equals(IFileInfo? x, IFileInfo? y) => string.Equals(x?.Name, y?.Name, _fsComparison); 305public int GetHashCode(IFileInfo obj) => obj.Name.GetHashCode(_fsComparison);
Microsoft.AspNetCore.Hosting.Tests (10)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (10)
289Assert.Equal("file.version.js", file.Name); 306Assert.Equal("", file.Name); 323Assert.Equal("other.html", file.Name); 342Assert.Equal("other.html", file.Name); 358Assert.Equal("project-transitive-dep.js", file.Name); 439Assert.Equal(new[] { (true, "_content") }, contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray()); 472contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray()); 490contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray()); 548Assert.Contains(directory, file => string.Equals(file.Name, expected)); 606contents.Select(e => (e.IsDirectory, e.Name)).OrderBy(e => e.Name).ToArray());
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
FileProviderRazorProjectFileSystem.cs (3)
54var relativePath = prefix + "/" + fileInfo.Name; 62else if (string.Equals(RazorFileExtension, Path.GetExtension(fileInfo.Name), StringComparison.OrdinalIgnoreCase)) 64var filePath = prefix + "/" + fileInfo.Name;
Microsoft.AspNetCore.Mvc.TagHelpers (4)
FileProviderGlobbingDirectory.cs (3)
37RelativePath = _parent.RelativePath + DirectorySeparatorChar + _fileInfo.Name; 42RelativePath = _fileInfo.Name; 62public override string Name => _fileInfo?.Name;
FileProviderGlobbingFile.cs (1)
18Name = fileInfo.Name;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
GlobbingUrlBuilderTest.cs (1)
451fileInfo.Setup(f => f.Name).Returns(name);
Microsoft.AspNetCore.StaticFiles (2)
HtmlDirectoryFormatter.cs (2)
144HtmlEncode(subdir.Name), 180HtmlEncode(file.Name),
Microsoft.Extensions.Configuration.KeyPerFile (2)
KeyPerFileConfigurationProvider.cs (2)
97if (Source.IgnoreCondition == null || !Source.IgnoreCondition(file.Name)) 99data.Add(NormalizeKey(file.Name), TrimNewLine(streamReader.ReadToEnd()));
Microsoft.Extensions.FileProviders.Composite (1)
CompositeDirectoryContents.cs (1)
69if (names.Add(file.Name))
Microsoft.Extensions.FileProviders.Embedded.Tests (20)
EmbeddedFileProviderTests.cs (7)
55Assert.Equal("File.txt", fileInfo.Name); 121Assert.Equal("File3.txt", fileInfo.Name); 159Assert.Equal("File.txt", fileInfo.Name); 197Assert.Equal("File3.txt", fileInfo.Name); 212Assert.Collection(files.OrderBy(f => f.Name, StringComparer.Ordinal), 213file => Assert.Equal("File.txt", file.Name), 214file => Assert.Equal("ResourcesInSubdirectory.File3.txt", file.Name));
FileInfoComparer.cs (2)
28string.Equals(x.Name, y.Name, StringComparison.Ordinal) &&
ManifestEmbeddedFileProviderTests.cs (11)
31Assert.Equal("jquery.validate.js", jqueryValidate.Name); 38Assert.Equal("jquery.min.js", jqueryMin.Name); 45Assert.Equal("site.css", siteCss.Name); 68Assert.Equal("jquery.validate.js", jqueryValidate.Name); 75Assert.Equal("jquery.min.js", jqueryMin.Name); 82Assert.Equal("site.css", siteCss.Name); 167Assert.Equal("jquery.validate.js", jqueryValidate.Name); 190Assert.Equal("jquery.validate.js", jqueryValidate.Name); 237Assert.Equal(path, file.Name); 392var root = provider.GetDirectoryContents("/").ToDictionary(f => f.Name); 441Assert.Equal("jquery.validate.js", jqueryValidate.Name);