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