17 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)