13 writes to Route
Microsoft.NET.Sdk.StaticWebAssets.Tasks (13)
_generated\7\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpoint.g.cs (1)
61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Route = value!,
ApplyCompressionNegotiation.cs (1)
279Route = relatedEndpointCandidate.Route,
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
51candidateEndpoint.Route = StaticWebAsset.CombineNormalizedPaths("", asset.BasePath, candidateEndpoint.Route, '/');
Data\StaticWebAssetEndpoint.cs (4)
446string ITaskItem2.EvaluatedIncludeEscaped { get => Route; set => Route = value; } 447string ITaskItem.ItemSpec { get => Route; set => Route = value; } 630endpoint.Route = StaticWebAsset.CombineNormalizedPaths("", newBasePath, remaining, '/'); 638endpoint.Route = StaticWebAsset.CombineNormalizedPaths("", newBasePath, endpoint.Route, '/');
DefineStaticWebAssetEndpoints.cs (2)
237Route = finalRoute, 295Route = newRoute,
GenerateStaticWebAssetEndpointsManifest.cs (1)
117endpoint.Route = route;
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (2)
75endpoint.Route = route; 86endpoints[0].Route = asset.ReplaceTokens(endpoints[0].Route, StaticWebAssetTokenResolver.Instance);
ResolveStaticWebAssetEndpointRoutes.cs (1)
31endpoint.Route = route;
78 references to Route
Microsoft.NET.Sdk.StaticWebAssets.Tasks (78)
_generated\7\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpoint.g.cs (2)
60Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)obj).Route, 188writer.WriteString(PropName_Route, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint)value).Route);
ApplyCompressionNegotiation.cs (17)
56Log.LogMessage(MessageImportance.Low, " Skipping endpoint '{0}' since it already has a Content-Encoding selector", compressedEndpoint.Route); 71Log.LogMessage(MessageImportance.Low, " Updated endpoint '{0}' with Content-Encoding and Vary headers", compressedEndpoint.Route); 89Log.LogMessage(MessageImportance.Low, " Adding Vary response header to related endpoint '{0}'", relatedEndpointCandidate.Route); 123Log.LogMessage(MessageImportance.Low, " Skipping endpoint '{0}' since and endpoint for the same asset was updated.", endpointToSkip.Route); 136var route = updatedEndpoint.Route; 203if (!result.TryGetValue(endpoint.Route, out var routeEndpoints)) 206result[endpoint.Route] = routeEndpoints; 247Log.LogMessage(MessageImportance.Low, "Processing related endpoint '{0}'", relatedEndpointCandidate.Route); 254Log.LogMessage(MessageImportance.Low, " Created Content-Encoding selector for compressed asset '{0}' with size '{1}' is '{2}'", encodingSelector.Value, encodingSelector.Quality, relatedEndpointCandidate.Route); 265Log.LogMessage(MessageImportance.Low, " Adding original-resource endpoint property for related endpoint '{0}'", relatedEndpointCandidate.Route); 279Route = relatedEndpointCandidate.Route, 288ApplyCompressedEndpointHeaders(headers, compressedEndpoint, relatedEndpointCandidate.Route); 293Log.LogMessage(MessageImportance.Low, " Updated related endpoint '{0}' with Content-Encoding selector '{1}={2}'", relatedEndpointCandidate.Route, encodingSelector.Value, encodingSelector.Quality); 399Log.LogMessage(MessageImportance.Low, " Adding header '{0}' to related endpoint '{1}'", header.Name, relatedEndpointCandidate.Route); 411Log.LogMessage(MessageImportance.Low, " Updating ETag header for related endpoint '{0}'", relatedEndpointCandidate.Route); 419Log.LogMessage(MessageImportance.Low, "Adding Content-Type '{1}' header to related endpoint '{0}'", relatedEndpointCandidate.Route, header.Value); 425Log.LogMessage(MessageImportance.Low, " Skipping header '{0}' for related endpoint '{1}'", header.Name, relatedEndpointCandidate.Route);
ComputeEndpointsForReferenceStaticWebAssets.cs (5)
44var oldRoute = candidateEndpoint.Route; 51candidateEndpoint.Route = StaticWebAsset.CombineNormalizedPaths("", asset.BasePath, candidateEndpoint.Route, '/'); 66Log.LogMessage(MessageImportance.Low, "Adding endpoint {0} for asset {1} with updated route {2}.", candidateEndpoint.Route, candidateEndpoint.AssetFile, candidateEndpoint.Route); 73Log.LogMessage(MessageImportance.Low, "Skipping endpoint {0} because the asset {1} was not found.", candidateEndpoint.Route, candidateEndpoint.AssetFile);
Data\StaticWebAssetEndpoint.cs (17)
204Array.Sort(result, (a, b) => (a.Route, b.Route) switch 259public bool Equals(StaticWebAssetEndpoint other) => other is not null && Route == other.Route && 286hashCode.Add(Route); 305$"{nameof(StaticWebAssetEndpoint)}: Route = {Route}, AssetFile = {AssetFile}, Selectors = {StaticWebAssetEndpointSelector.ToMetadataValue(Selectors ?? [])}, ResponseHeaders = {ResponseHeaders?.Length}, EndpointProperties = {StaticWebAssetEndpointProperty.ToMetadataValue(EndpointProperties ?? [])}"; 309var routeComparison = StringComparer.Ordinal.Compare(Route, Route); 427return string.Equals(x.Route, y.Route, StringComparison.Ordinal) && 439return HashCode.Combine(obj.Route, obj.AssetFile); 446string ITaskItem2.EvaluatedIncludeEscaped { get => Route; set => Route = value; } 447string ITaskItem.ItemSpec { get => Route; set => Route = value; } 625RouteHasPathPrefix(endpoint.Route, normalizedOldBase, routeSegments, basePathSegments)) 627var remaining = endpoint.Route.Length > normalizedOldBase.Length 628? endpoint.Route.Substring(normalizedOldBase.Length).TrimStart('/') 638endpoint.Route = StaticWebAsset.CombineNormalizedPaths("", newBasePath, endpoint.Route, '/');
Data\StaticWebAssetEndpointGroup.cs (3)
27if (!groups.TryGetValue(endpoint.Route, out var group)) 29group = new StaticWebAssetEndpointGroup { Route = endpoint.Route }; 30groups[endpoint.Route] = group;
DefineStaticWebAssetEndpoints.cs (3)
243Log.LogMessage(MessageImportance.Low, $"Adding endpoint {endpoint.Route} for asset {asset.Identity}."); 259matchContext.SetPathAndReinitialize(sourceEndpoint.Route); 303Log.LogMessage(MessageImportance.Low, $"Adding additional endpoint {additionalEndpoint.Route} (order={definition.Order}) for asset {sourceEndpoint.AssetFile} from pattern {definition.Pattern}.");
FilterStaticWebAssetEndpoints.cs (2)
61$"Filtered out endpoint {endpoint.Route} because it did not meet the criteria {failingCriteria.Type} {failingCriteria.Name} {failingCriteria.Value}"); 141var route = asset.ReplaceTokens(endpoint.Route, StaticWebAssetTokenResolver.Instance);
FilterStaticWebAssetGroups.cs (1)
100endpoint.Route, endpoint.AssetFile);
GeneratePackageAssetsManifestFile.cs (2)
168foreach (var endpoint in endpoints.OrderBy(e => e.Route, StringComparer.OrdinalIgnoreCase) 181endpoint.Route, endpoint.AssetFile);
GenerateStaticWebAssetEndpointsManifest.cs (3)
87Log.LogMessage(MessageImportance.Low, "Skipping endpoint '{0}' because the asset '{1}' is not part of the manifest", endpoint.Route, endpoint.AssetFile); 92var route = asset.ResolvedAsset.ReplaceTokens(endpoint.Route, StaticWebAssetTokenResolver.Instance); 121Log.LogMessage(MessageImportance.Low, "Including endpoint '{0}' for asset '{1}' with final location '{2}'", endpoint.Route, endpoint.AssetFile, asset.TargetPath);
GenerateStaticWebAssetEndpointsPropsFile.cs (3)
48var orderedAssets = endpoints.OrderBy(e => e.Route, StringComparer.OrdinalIgnoreCase) 58new XAttribute("Include", element.Route), 133Log.LogError($"The asset file '{endpoint.AssetFile}' specified in the endpoint '{endpoint.Route}' does not exist.");
GenerateStaticWebAssetsManifest.cs (4)
55Array.Sort(endpoints, (l, r) => string.CompareOrdinal(l.Route, r.Route) switch 115Log.LogMessage(MessageImportance.Low, $"Accepted endpoint: Route='{endpoint.Route}', AssetFile='{endpoint.AssetFile}'"); 119Log.LogMessage(MessageImportance.Low, $"Filtered out endpoint: Endpoint='{endpoint.Route}' AssetFile='{endpoint.AssetFile}'");
JSModules\GenerateJSModuleManifest.cs (1)
29var modules = StaticWebAssetEndpoint.FromItemGroup(JsModules).Select(s => s.Route).ToArray();
OverrideHtmlAssetPlaceholders.cs (1)
177var resourceAsset = new ResourceAsset(endpoint.Route);
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (7)
73var route = asset.ReplaceTokens(endpoint.Route, StaticWebAssetTokenResolver.Instance); 74Log.LogMessage(MessageImportance.Low, $"Selected endpoint '{endpoint.Route}' for asset '{asset.Identity}' because it has a fingerprinted route '{route}'."); 86endpoints[0].Route = asset.ReplaceTokens(endpoints[0].Route, StaticWebAssetTokenResolver.Instance); 87Log.LogMessage(MessageImportance.Low, $"Selected endpoint '{endpoints[0].Route}' for asset '{asset.Identity}' because no fingerprinted endpoint was found."); 115var route = asset.ReplaceTokens(endpoint.Route, StaticWebAssetTokenResolver.Instance); 118Log.LogMessage(MessageImportance.Low, $"Selected endpoint '{endpoint.Route}' for asset '{asset.Identity}' because '{assetPath}' matches resolved route '{route}'."); 123Log.LogMessage(MessageImportance.Low, $"Skipping endpoint '{endpoint.Route}' for asset '{asset.Identity}' because '{assetPath}' does not match resolved route '{route}'.");
ResolveStaticWebAssetEndpointRoutes.cs (2)
27Log.LogError($"The asset file '{endpoint.AssetFile}' for endpoint '{endpoint.Route}' was not found."); 30var route = asset.ReplaceTokens(endpoint.Route, StaticWebAssetTokenResolver.Instance);
UpdatePackageStaticWebAssets.cs (3)
98if (!endpointsByRoute.TryGetValue(endpoint.Route, out var group)) 101endpointsByRoute[endpoint.Route] = group; 137kvp.Key, endpoint.Route, oldAssetFile, info.NewIdentity);
UpdateStaticWebAssetEndpoints.cs (2)
45.GroupBy(e => e.Route) 48.GroupBy(e => e.Route)