23 instantiations of StaticWebAssetNode
Microsoft.AspNetCore.Hosting.Tests (23)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (23)
21manifest.Root = new() 25["_content"] = new() 29["Microsoft.AspNetCore.Hosting.StaticWebAssets.xml"] = new() 369manifest.Root = new() 373["_content"] = new() 377["Static Web Assets.txt"] = new() 510manifest.Root = new() 514["_content"] = new() 518["RazorClassLib"] = new() 522["Dir"] = new() 560manifest.Root = new() 564["_content"] = new() 568["RazorClassLib"] = new() 572["Dir"] = new() 617manifest.Root = new() 621["_content"] = new() 625["Microsoft.AspNetCore.Hosting.StaticWebAssets.xml"] = new() 709manifest.Root = new() 713["_content"] = new() 717["RazorClassLibrary"] = new() 719Children = new() { ["file.version.js"] = new() { Match = new() { ContentRoot = 0, Path = "file.js" } } }, 722["AnotherClassLibrary"] = new() 757manifest.Root = new()
18 references to StaticWebAssetNode
Microsoft.AspNetCore.Hosting (17)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (17)
23private readonly StaticWebAssetNode _root; 45var candidate = _root; 58if (candidate.HasChildren() && candidate.Children.TryGetValue(segments[i], out var child)) 86HashSet<IFileInfo>? GetFilesForCandidatePatterns(string[] segments, StaticWebAssetNode? candidate, HashSet<IFileInfo>? files) 119void GetCandidateFilesForNode(StaticWebAssetNode candidate, HashSet<IFileInfo> files) 159StaticWebAssetNode? candidate = _root; 171if (candidate.HasChildren() && candidate.Children.TryGetValue(segments[i], out var child)) 315public StaticWebAssetNode Root { get; set; } = null!; 327[JsonSerializable(typeof(IDictionary<string, StaticWebAssetNode>))] 342public Dictionary<string, StaticWebAssetNode>? Children { get; set; } 372private sealed class OSBasedCaseConverter : JsonConverter<Dictionary<string, StaticWebAssetNode>> 374public override Dictionary<string, StaticWebAssetNode> Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) 380var result = new Dictionary<string, StaticWebAssetNode>(StaticWebAssetManifest.PathComparer); 385IDictionary<string, StaticWebAssetNode> newChildren, 386IDictionary<string, StaticWebAssetNode> existing) 390if (!existing.TryGetValue(key, out var existingNode)) 433public override void Write(Utf8JsonWriter writer, Dictionary<string, StaticWebAssetNode> value, JsonSerializerOptions options)
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
759Children = new Dictionary<string, ManifestStaticWebAssetFileProvider.StaticWebAssetNode>(),