59 instantiations of StaticWebAssetEndpoint
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
ApplyCompressionNegotiation.cs (1)
272var endpointCopy = new StaticWebAssetEndpoint
Data\StaticWebAssetEndpoint.cs (1)
194var result = new StaticWebAssetEndpoint()
DefineStaticWebAssetEndpoints.cs (1)
189var endpoint = new StaticWebAssetEndpoint()
Microsoft.NET.Sdk.StaticWebAssets.Tests (56)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (47)
77new () 91new () 104new () 189new() 255new() 321new() 374new() 432new() 490new() 546new() 602new() 645new() 693new() 803new () 816new () 828new () 841new () 853new () 908new() 921new() 932new() 945new() 956new() 979new StaticWebAssetEndpoint 992new StaticWebAssetEndpoint 1004new StaticWebAssetEndpoint 1017new StaticWebAssetEndpoint 1029new StaticWebAssetEndpoint 1100new() 1113new() 1124new() 1137new() 1148new() 1161new() 1182new StaticWebAssetEndpoint 1195new StaticWebAssetEndpoint 1208new StaticWebAssetEndpoint 1220new StaticWebAssetEndpoint 1233new StaticWebAssetEndpoint 1246new StaticWebAssetEndpoint 1258new StaticWebAssetEndpoint 1271new StaticWebAssetEndpoint 1366new () 1380new () 1393new () 1407new () 1488return new StaticWebAssetEndpoint
StaticWebAssets\ComputeEndpointsForReferenceStaticWebAssetsTest.cs (1)
137return new StaticWebAssetEndpoint
StaticWebAssets\DefineStaticWebAssetEndpointsTest.cs (1)
644return new StaticWebAssetEndpoint
StaticWebAssets\GenerateStaticWebAssetEndpointsManifestTest.cs (4)
21new() { 64new() { 107new() { 140new() {
StaticWebAssets\GenerateStaticWebAssetEndpointsPropsFileTest.cs (1)
208return new StaticWebAssetEndpoint
StaticWebAssets\GenerateStaticWebAssetsManifestTest.cs (1)
112return new StaticWebAssetEndpoint
StaticWebAssets\UpdateStaticWebAssetEndpointsTest.cs (1)
250var unmodifiedEndpoint = new StaticWebAssetEndpoint
252 references to StaticWebAssetEndpoint
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (21)
StaticWebAssetsBaselineComparer.cs (17)
99foreach (var endpoint in actual.Endpoints) 118static bool DuplicatesExist(KeyValuePair<StaticWebAssetEndpoint, StaticWebAssetEndpoint[]> a) 120var endpoint = a.Key; 134private static void SortEndpointProperties(Dictionary<string, StaticWebAssetEndpoint[]> endpoints) 138foreach (var endpoint in endpointGroup) 321protected virtual void CompareEndpointGroup(string group, StaticWebAssetEndpoint[] manifestAssets, StaticWebAssetEndpoint[] expectedAssets) 343var manifestAsset = manifestAssets[i]; 344var expectedAsset = expectedAssets[i]; 371private GroupComparisonMode CompareEndpointCounts(string group, StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints) 396static void ThrowEndpointCountMismatchError(string group, StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints) 433private static void ComputeEndpointDifferences(List<string> assetDifferences, StaticWebAssetEndpoint manifestAsset, StaticWebAssetEndpoint expectedAsset) 504protected virtual string GetEndpointGroup(StaticWebAssetEndpoint asset)
StaticWebAssetsBaselineFactory.cs (4)
84foreach (var endpoint in relatedEndpoints ?? []) 97foreach (var endpoint in relatedEndpoints ?? []) 116foreach (var endpoint in manifest.Endpoints) 206foreach (var endpoint in manifest.Endpoints)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (119)
ApplyCompressionNegotiation.cs (34)
28var endpointsByAsset = StaticWebAssetEndpoint.ToAssetFileDictionary(CandidateEndpoints); 30var updatedEndpoints = new HashSet<StaticWebAssetEndpoint>(CandidateEndpoints.Length, StaticWebAssetEndpoint.RouteAndAssetComparer); 48foreach (var compressedEndpoint in compressedEndpoints) 70foreach (var relatedEndpointCandidate in relatedAssetEndpoints) 77var endpointCopy = CreateUpdatedEndpoint(compressedAsset, quality, compressedEndpoint, compressedHeaders, relatedEndpointCandidate); 113foreach (var endpoint in updatedEndpoints) 117foreach (var endpointToSkip in endpointsToSkip) 129var additionalUpdatedEndpoints = new HashSet<StaticWebAssetEndpoint>(updatedEndpoints.Count, StaticWebAssetEndpoint.RouteAndAssetComparer); 130foreach (var updatedEndpoint in updatedEndpoints) 137foreach (var endpoint in endpoints) 158UpdatedEndpoints = StaticWebAssetEndpoint.ToTaskItems(additionalUpdatedEndpoints); 163private static bool HasVaryResponseHeaderWithAcceptEncoding(StaticWebAssetEndpoint endpoint) 178private static HashSet<string> GetCompressedHeaders(StaticWebAssetEndpoint compressedEndpoint) 190private static Dictionary<string, List<StaticWebAssetEndpoint>> GetEndpointsByRoute( 191IDictionary<string, List<StaticWebAssetEndpoint>> endpointsByAsset) 193var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(endpointsByAsset.Count); 197foreach (var endpoint in endpointsList) 201routeEndpoints = new List<StaticWebAssetEndpoint>(5); 236private StaticWebAssetEndpoint CreateUpdatedEndpoint( 239StaticWebAssetEndpoint compressedEndpoint, 241StaticWebAssetEndpoint relatedEndpointCandidate) 272var endpointCopy = new StaticWebAssetEndpoint 292private static bool HasContentEncodingResponseHeader(StaticWebAssetEndpoint compressedEndpoint) 306private static bool HasContentEncodingSelector(StaticWebAssetEndpoint compressedEndpoint) 320private (List<StaticWebAssetEndpoint> compressedEndpoints, List<StaticWebAssetEndpoint> relatedAssetEndpoints) ResolveEndpoints( 322IDictionary<string, List<StaticWebAssetEndpoint>> endpointsByAsset, 349private static bool IsCompatible(StaticWebAssetEndpoint compressedEndpoint, StaticWebAssetEndpoint relatedEndpointCandidate) 356private static StaticWebAssetEndpointProperty ResolveFingerprint(StaticWebAssetEndpoint compressedEndpoint) 368private void ApplyCompressedEndpointHeaders(List<StaticWebAssetEndpointResponseHeader> headers, StaticWebAssetEndpoint compressedEndpoint, string relatedEndpointCandidateRoute) 386private void ApplyRelatedEndpointCandidateHeaders(List<StaticWebAssetEndpointResponseHeader> headers, StaticWebAssetEndpoint relatedEndpointCandidate, HashSet<string> compressedHeaders)
ComputeEndpointsForReferenceStaticWebAssets.cs (2)
29var candidateEndpoint = StaticWebAssetEndpoint.FromTaskItem(CandidateEndpoints[i]);
Data\StaticAssetsManifest.cs (3)
23StaticWebAssetEndpoint[] endpoints) 84public StaticWebAssetEndpoint[] Endpoints { get; set; } 136&& EqualityComparer<StaticWebAssetEndpoint[]>.Default.Equals(Endpoints, other.Endpoints);
Data\StaticWebAssetEndpoint.cs (23)
14public class StaticWebAssetEndpoint : IEquatable<StaticWebAssetEndpoint>, IComparable<StaticWebAssetEndpoint>, ITaskItem2 148public static IEqualityComparer<StaticWebAssetEndpoint> RouteAndAssetComparer { get; } = new RouteAndAssetEqualityComparer(); 150internal static IDictionary<string, List<StaticWebAssetEndpoint>> ToAssetFileDictionary(ITaskItem[] candidateEndpoints) 152var result = new Dictionary<string, List<StaticWebAssetEndpoint>>(candidateEndpoints.Length / 2); 156var endpoint = FromTaskItem(candidate); 160endpoints = new List<StaticWebAssetEndpoint>(5); 169public static StaticWebAssetEndpoint[] FromItemGroup(ITaskItem[] endpoints) 171var result = new StaticWebAssetEndpoint[endpoints.Length]; 192public static StaticWebAssetEndpoint FromTaskItem(ITaskItem item) 194var result = new StaticWebAssetEndpoint() 202public static ITaskItem[] ToTaskItems(ICollection<StaticWebAssetEndpoint> endpoints) 211foreach (var endpoint in endpoints) 230public override bool Equals(object obj) => Equals(obj as StaticWebAssetEndpoint); 232public bool Equals(StaticWebAssetEndpoint other) => other is not null && Route == other.Route && 278$"{nameof(StaticWebAssetEndpoint)}: Route = {Route}, AssetFile = {AssetFile}, Selectors = {StaticWebAssetEndpointSelector.ToMetadataValue(Selectors ?? [])}, ResponseHeaders = {ResponseHeaders?.Length}, EndpointProperties = {StaticWebAssetEndpointProperty.ToMetadataValue(EndpointProperties ?? [])}"; 280public int CompareTo(StaticWebAssetEndpoint other) 369internal static ITaskItem[] ToTaskItems(ConcurrentBag<StaticWebAssetEndpoint> endpoints) 378foreach (var endpoint in endpoints) 386private sealed class RouteAndAssetEqualityComparer : IEqualityComparer<StaticWebAssetEndpoint> 388public bool Equals(StaticWebAssetEndpoint x, StaticWebAssetEndpoint y) 404public int GetHashCode(StaticWebAssetEndpoint obj)
Data\StaticWebAssetEndpointsManifest.cs (1)
14public StaticWebAssetEndpoint[] Endpoints { get; set; }
DefineStaticWebAssetEndpoints.cs (9)
29var endpoints = new List<StaticWebAssetEndpoint>(CandidateAssets.Length); 36new List<StaticWebAssetEndpoint>(512), 44Endpoints = StaticWebAssetEndpoint.ToTaskItems(endpoints); 79var assetFile = endpointCandidate.GetMetadata(nameof(StaticWebAssetEndpoint.AssetFile)); 103List<StaticWebAssetEndpoint> collectedEndpoints, 104List<StaticWebAssetEndpoint> currentEndpoints, 110public List<StaticWebAssetEndpoint> CollectedEndpoints { get; } = collectedEndpoints; 111public List<StaticWebAssetEndpoint> CurrentEndpoints { get; } = currentEndpoints; 189var endpoint = new StaticWebAssetEndpoint()
FilterStaticWebAssetEndpoints.cs (4)
36var endpoints = StaticWebAssetEndpoint.FromItemGroup(Endpoints ?? []); 39var filteredEndpoints = new List<StaticWebAssetEndpoint>(); 43var endpoint = endpoints[i]; 76private static bool MeetsAllCriteria(StaticWebAssetEndpoint endpoint, StaticWebAsset asset, FilterCriteria[] filterCriteria, out FilterCriteria failingCriteria)
GenerateStaticWebAssetEndpointsManifest.cs (3)
80var endpoints = StaticWebAssetEndpoint.FromItemGroup(Endpoints); 81var filteredEndpoints = new List<StaticWebAssetEndpoint>(); 83foreach (var endpoint in endpoints)
GenerateStaticWebAssetEndpointsPropsFile.cs (10)
27var endpoints = StaticWebAssetEndpoint.FromItemGroup(StaticWebAssetEndpoints); 37private bool ExecuteCore(StaticWebAssetEndpoint[] endpoints, Dictionary<string, StaticWebAsset> assets) 48foreach (var element in orderedAssets) 54itemGroup.Add(new XElement(nameof(StaticWebAssetEndpoint), 56new XElement(nameof(StaticWebAssetEndpoint.AssetFile), fullPathExpression), 57new XElement(nameof(StaticWebAssetEndpoint.Selectors), new XCData(StaticWebAssetEndpointSelector.ToMetadataValue(element.Selectors))), 58new XElement(nameof(StaticWebAssetEndpoint.EndpointProperties), new XCData(StaticWebAssetEndpointProperty.ToMetadataValue(element.EndpointProperties))), 59new XElement(nameof(StaticWebAssetEndpoint.ResponseHeaders), new XCData(StaticWebAssetEndpointResponseHeader.ToMetadataValue(element.ResponseHeaders))))); 122private bool ValidateArguments(StaticWebAssetEndpoint[] endpoints, Dictionary<string, StaticWebAsset> asset) 125foreach (var endpoint in endpoints)
GenerateStaticWebAssetsManifest.cs (5)
96private StaticWebAssetEndpoint[] FilterPublishEndpointsIfNeeded(StaticWebAsset[] assets) 103var filteredEndpoints = new List<StaticWebAssetEndpoint>(); 105foreach (var endpoint in Endpoints.Select(StaticWebAssetEndpoint.FromTaskItem)) 121return StaticWebAssetEndpoint.FromItemGroup(Endpoints);
JSModules\GenerateJSModuleManifest.cs (1)
29var modules = StaticWebAssetEndpoint.FromItemGroup(JsModules).Select(s => s.Route).ToArray();
OverrideHtmlAssetPlaceholders.cs (3)
48var endpoints = StaticWebAssetEndpoint.FromItemGroup(Endpoints).Where(e => e.AssetFile.EndsWith(".js") || e.AssetFile.EndsWith(".mjs")); 164internal List<ResourceAsset> CreateResourcesFromEndpoints(IEnumerable<StaticWebAssetEndpoint> endpoints) 172foreach (var endpoint in endpoints)
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (6)
28var candidateEndpoints = StaticWebAssetEndpoint.FromItemGroup(CandidateEndpoints); 30var resolvedEndpoints = new List<StaticWebAssetEndpoint>(); 50var endpoint = endpoints[j]; 69var endpoint = endpoints[j]; 99private static bool HasFingerprint(StaticWebAssetEndpoint endpoint) 113private bool MatchesAssetPath(StaticWebAsset asset, string assetPath, StaticWebAssetEndpoint endpoint)
ResolveStaticWebAssetEndpointRoutes.cs (2)
20var endpoints = StaticWebAssetEndpoint.FromItemGroup(Endpoints); 23foreach (var endpoint in endpoints)
UpdateExternallyDefinedStaticWebAssets.cs (1)
40var endpoints = StaticWebAssetEndpoint.FromItemGroup(Endpoints);
UpdateStaticWebAssetEndpoints.cs (12)
44var endpointsToUpdate = StaticWebAssetEndpoint.FromItemGroup(EndpointsToUpdate) 47var allEndpoints = StaticWebAssetEndpoint.FromItemGroup(AllEndpoints) 52var result = new List<StaticWebAssetEndpoint>(); 65foreach (var endpoint in endpointGroup) 67allEndpoints[route].TryGetValue(endpoint, out var oldEndpoint); 80UpdatedEndpoints = StaticWebAssetEndpoint.ToTaskItems(result); 85private static bool TryUpdateEndpoint(StaticWebAssetEndpoint endpoint, StaticWebAssetEndpointOperation[] operations, List<StaticWebAssetEndpoint> result) 119private static bool RemoveAllFromEndpoint(StaticWebAssetEndpoint endpoint, StaticWebAssetEndpointOperation operation) 200private static bool ReplaceInEndpoint(StaticWebAssetEndpoint endpoint, StaticWebAssetEndpointOperation operation) 277private static bool RemoveFromEndpoint(StaticWebAssetEndpoint endpoint, StaticWebAssetEndpointOperation operation) 312private static void AppendToEndpoint(StaticWebAssetEndpoint endpoint, StaticWebAssetEndpointOperation operation)
Microsoft.NET.Sdk.StaticWebAssets.Tests (112)
StaticWebAssetEndpointsIntegrationTest.cs (10)
83private bool MatchUncompresedProjectBundlesNoFingerprint(StaticWebAssetEndpoint ep) => ProjectBundleRegex().Match(ep.Route) is 94private bool MatchCompressedProjectBundlesNoFingerprint(StaticWebAssetEndpoint ep) => ProjectBundleRegex().Match(ep.Route) is 105private bool MatchUncompressedProjectBundlesWithFingerprint(StaticWebAssetEndpoint ep) => ProjectBundleRegex().Match(ep.Route) is 116private bool MatchCompressedProjectBundlesWithFingerprint(StaticWebAssetEndpoint ep) => ProjectBundleRegex().Match(ep.Route) is 128private bool MatchUncompressedAppBundleNoFingerprint(StaticWebAssetEndpoint ep) => AppBundleRegex().Match(ep.Route) is 139private bool MatchCompressedAppBundleNoFingerprint(StaticWebAssetEndpoint ep) => AppBundleRegex().Match(ep.Route) is 150private bool MatchUncompressedAppBundleWithFingerprint(StaticWebAssetEndpoint ep) => AppBundleRegex().Match(ep.Route) is 161private bool MatchCompressedAppBundleWithFingerprint(StaticWebAssetEndpoint ep) => AppBundleRegex().Match(ep.Route) is 195foreach (var endpoint in endpoints) 525foreach (var endpoint in endpoints.Endpoints)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (18)
75var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 76endpoints.Should().BeEquivalentTo((StaticWebAssetEndpoint[])[ 186var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 187var expectedEndpoints = new StaticWebAssetEndpoint[] 801var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 802endpoints.Should().BeEquivalentTo((StaticWebAssetEndpoint[])[ 906CandidateEndpoints = new StaticWebAssetEndpoint[] 977var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 1098CandidateEndpoints = new StaticWebAssetEndpoint[] 1180var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 1364var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 1365endpoints.Should().BeEquivalentTo((StaticWebAssetEndpoint[])[ 1557var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 1560var compressedEndpoint = endpoints.FirstOrDefault(e => e.Route == "candidate.js" && e.AssetFile.Contains("candidate.js.gz")); 1624var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 1627var compressedEndpoint = endpoints.FirstOrDefault(e => e.Route == "candidate.js" && e.AssetFile.Contains("candidate.js.gz")); 1691var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.UpdatedEndpoints); 1694var compressedEndpoint = endpoints.FirstOrDefault(e => e.Route == "candidate.js" && e.AssetFile.Contains("candidate.js.gz"));
StaticWebAssets\DefineStaticWebAssetEndpointsTest.cs (15)
53var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.Endpoints); 55var endpoint = endpoints[0]; 121var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.Endpoints); 123var endpoint = endpoints[0]; 173var otherEndpoint = endpoints[1]; 238var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.Endpoints); 240var endpoint = endpoints[1]; 290var otherEndpoint = endpoints[0]; 376var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.Endpoints); 427var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.Endpoints); 429var endpoint = endpoints[0]; 478var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.Endpoints); 480var endpoint = endpoints[0]; 532var endpoints = StaticWebAssetEndpoint.FromItemGroup(task.Endpoints); 534var endpoint = endpoints[0];
StaticWebAssets\FilterStaticWebAssetEndpointsTest.cs (8)
52var filteredEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterEndpointsTask.FilteredEndpoints); 88var filteredEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterEndpointsTask.FilteredEndpoints); 125var filteredEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterEndpointsTask.FilteredEndpoints); 156var filteredEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterEndpointsTask.FilteredEndpoints); 195var filteredEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterEndpointsTask.FilteredEndpoints); 235var filteredEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterEndpointsTask.FilteredEndpoints); 242private StaticWebAssetEndpoint[] CreateEndpoints(StaticWebAsset[] assets) 258return StaticWebAssetEndpoint.FromItemGroup(defineStaticWebAssetEndpoints.Endpoints);
StaticWebAssets\GenerateStaticWebAssetEndpointsManifestTest.cs (3)
19StaticWebAssetEndpoint[] expectedEndpoints = 434private StaticWebAssetEndpoint[] CreateEndpoints(StaticWebAsset[] assets) 445return StaticWebAssetEndpoint.FromItemGroup(defineStaticWebAssetEndpoints.Endpoints);
StaticWebAssets\GenerateStaticWebAssetsManifestTest.cs (3)
77var endpoint = CreateEndpoint(asset); 106var newEndpoint = manifest.Endpoints[0]; 110private static StaticWebAssetEndpoint CreateEndpoint(StaticWebAsset asset)
StaticWebAssets\ReadStaticWebAssetsManifestFileTest.cs (3)
198endpoint.GetMetadata(nameof(StaticWebAssetEndpoint.AssetFile)).Should().BeEquivalentTo($"{identity}"); 199endpoint.GetMetadata(nameof(StaticWebAssetEndpoint.Selectors)).Should().BeEquivalentTo("""[{"Name":"Content-Encoding","Value":"gzip","Quality":"0.9"}]"""); 200endpoint.GetMetadata(nameof(StaticWebAssetEndpoint.ResponseHeaders))
StaticWebAssets\ResolveFingerprintedStaticWebAssetEndpointsForAssetsTest.cs (8)
55var endpoint = StaticWebAssetEndpoint.FromTaskItem(resolvedEndpoints.ResolvedEndpoints[0]); 138var endpoint = StaticWebAssetEndpoint.FromTaskItem(resolvedEndpoints.ResolvedEndpoints[0]); 181var endpoint = StaticWebAssetEndpoint.FromTaskItem(resolvedEndpoints.ResolvedEndpoints[0]); 268private StaticWebAssetEndpoint[] CreateEndpoints(StaticWebAsset[] assets) 284return StaticWebAssetEndpoint.FromItemGroup(defineStaticWebAssetEndpoints.Endpoints);
StaticWebAssets\UpdateStaticWebAssetEndpointsTest.cs (19)
31foreach (var endpoint in fingerprintedEndpoints) 52var updatedEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterStaticWebAssetEndpoints.UpdatedEndpoints); 54foreach (var updatedEndpoint in updatedEndpoints) 93var updatedEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterStaticWebAssetEndpoints.UpdatedEndpoints); 95foreach (var updatedEndpoint in updatedEndpoints) 117foreach (var endpoint in fingerprintedEndpoints) 138var updatedEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterStaticWebAssetEndpoints.UpdatedEndpoints); 140foreach (var updatedEndpoint in updatedEndpoints) 162foreach (var endpoint in fingerprintedEndpoints) 183var updatedEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterStaticWebAssetEndpoints.UpdatedEndpoints); 185foreach (var updatedEndpoint in updatedEndpoints) 225var updatedEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterStaticWebAssetEndpoints.UpdatedEndpoints); 227foreach (var updatedEndpoint in updatedEndpoints) 250var unmodifiedEndpoint = new StaticWebAssetEndpoint 261foreach (var endpoint in fingerprintedEndpoints) 282var updatedEndpoints = StaticWebAssetEndpoint.FromItemGroup(filterStaticWebAssetEndpoints.UpdatedEndpoints); 289foreach (var updatedEndpoint in updatedModifiedEndpoints) 306private StaticWebAssetEndpoint[] CreateEndpoints(StaticWebAsset[] assets) 322return StaticWebAssetEndpoint.FromItemGroup(defineStaticWebAssetEndpoints.Endpoints);
StaticWebAssetsBaselineComparer.cs (17)
99foreach (var endpoint in actual.Endpoints) 118static bool DuplicatesExist(KeyValuePair<StaticWebAssetEndpoint, StaticWebAssetEndpoint[]> a) 120var endpoint = a.Key; 134private static void SortEndpointProperties(Dictionary<string, StaticWebAssetEndpoint[]> endpoints) 138foreach (var endpoint in endpointGroup) 321protected virtual void CompareEndpointGroup(string group, StaticWebAssetEndpoint[] manifestAssets, StaticWebAssetEndpoint[] expectedAssets) 343var manifestAsset = manifestAssets[i]; 344var expectedAsset = expectedAssets[i]; 371private GroupComparisonMode CompareEndpointCounts(string group, StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints) 396static void ThrowEndpointCountMismatchError(string group, StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints) 433private static void ComputeEndpointDifferences(List<string> assetDifferences, StaticWebAssetEndpoint manifestAsset, StaticWebAssetEndpoint expectedAsset) 504protected virtual string GetEndpointGroup(StaticWebAssetEndpoint asset)
StaticWebAssetsBaselineFactory.cs (4)
84foreach (var endpoint in relatedEndpoints ?? []) 97foreach (var endpoint in relatedEndpoints ?? []) 116foreach (var endpoint in manifest.Endpoints) 206foreach (var endpoint in manifest.Endpoints)
StaticWebAssetsCompressionIntegrationTest.cs (4)
72foreach (var endpoint in gzipEndpoints) 84foreach (var endpoint in brotliEndpoints) 184foreach (var endpoint in gzipEndpoints) 196foreach (var endpoint in brotliEndpoints)