1 write to Endpoints
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
GenerateStaticWebAssetEndpointsManifest.cs (1)
128Endpoints = [.. filteredEndpoints]
9 references to Endpoints
Microsoft.NET.Sdk.StaticWebAssets.Tests (9)
ScopedCssIntegrationTests.cs (1)
681var styles = json.Endpoints.Where(e => e.Route.EndsWith("styles.css"));
StaticWebAssetEndpointsIntegrationTest.cs (2)
523var endpointsByAssetFile = endpoints.Endpoints.GroupBy(e => e.AssetFile).ToDictionary(g => g.Key, g => g.ToArray()); 525foreach (var endpoint in endpoints.Endpoints)
StaticWebAssets\GenerateStaticWebAssetEndpointsManifestTest.cs (5)
207json.Endpoints.Should().HaveCount(4); 208Array.Sort(json.Endpoints); 209json.Endpoints.Should().BeEquivalentTo(expectedEndpoints); 262json.Endpoints.Should().HaveCount(1); 263json.Endpoints[0].Route.Should().Contain("styles.css");
StaticWebAssetsFingerprintingTest.cs (1)
176=> endpoints.Endpoints.FirstOrDefault(e => e.Route == route && e.Selectors.Length == 0)?.AssetFile ?? throw new Exception($"Missing endpoint for file '{route}' in '{endpointsManifestPath}'");