25 writes to Value
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
ApplyCompressionNegotiation.cs (1)
247Value = compressedAsset.AssetTraitValue,
UpdateStaticWebAssetEndpoints.cs (2)
209(name, value) => new StaticWebAssetEndpointSelector { Name = name, Value = value, Quality = operation.Quality }, 322Value = operation.Value,
Microsoft.NET.Sdk.StaticWebAssets.Tests (22)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (18)
89Selectors = [ new () { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 197Value = "br", 263Value = "gzip", 498Value = "br", 554Value = "gzip", 814Selectors = [ new () { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 839Selectors = [ new () { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 919Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 943Selectors = [ new () { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 990Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 1015Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 1111Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 1135Selectors = [ new () { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 1193Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 1206Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "br", Quality = "0.100000000000" } ], 1231Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ], 1244Selectors = [ new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "br", Quality = "0.100000000000" } ], 1378Selectors = [ new () { Name = "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ],
StaticWebAssets\FilterStaticWebAssetEndpointsTest.cs (1)
177endpoints[0].Selectors = [new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip" }];
StaticWebAssets\GenerateStaticWebAssetEndpointsPropsFileTest.cs (2)
69Value = "gzip", 139Value = "gzip",
StaticWebAssets\UpdateStaticWebAssetEndpointsTest.cs (1)
254Selectors = [new StaticWebAssetEndpointSelector { Name = "Content-Encoding", Value = "gzip" }],
26 references to Value
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (4)
StaticWebAssetsBaselineComparer.cs (4)
140Array.Sort(endpoint.Selectors, (a, b) => (a.Name, a.Value).CompareTo((b.Name, b.Value))); 495assetDifferences.Add($"Expected manifest to have selector '{difference.Name}={difference.Value};q={difference.Quality}' but it was not found."); 499assetDifferences.Add($"Found unexpected selector '{difference.Name}={difference.Value};q={difference.Quality}'.");
Microsoft.NET.Sdk.StaticWebAssets.Tasks (14)
ApplyCompressionNegotiation.cs (2)
250Log.LogMessage(MessageImportance.Low, " Created Content-Encoding selector for compressed asset '{0}' with size '{1}' is '{2}'", encodingSelector.Value, encodingSelector.Quality, relatedEndpointCandidate.Route); 288Log.LogMessage(MessageImportance.Low, " Updated related endpoint '{0}' with Content-Encoding selector '{1}={2}'", relatedEndpointCandidate.Route, encodingSelector.Value, encodingSelector.Quality);
Data\StaticWebAssetEndpoint.cs (2)
311selectorComparison = Selectors[i].Value.CompareTo(other.Selectors[i].Value);
Data\StaticWebAssetEndpointSelector.cs (6)
39var valueComparison = string.CompareOrdinal(Value, other.Value); 53string.Equals(Value, other.Value, StringComparison.Ordinal); 64return HashCode.Combine(Name, Value, Quality); 68private string GetDebuggerDisplay() => $"Name: {Name}, Value: {Value}, Quality: {Quality}";
FilterStaticWebAssetEndpoints.cs (1)
105if (MeetsCriteria(criteria, selector.Name, selector.Value))
UpdateStaticWebAssetEndpoints.cs (3)
124var (selectors, selectorRemoved) = RemoveAllIfFound(endpoint.Selectors, s => s.Name, s => s.Value, operation.Name, operation.Value); 208s => s.Value, 282var (selectors, selectorRemoved) = RemoveFirstIfFound(endpoint.Selectors, s => s.Name, s => s.Value, operation.Name, operation.Value);
Microsoft.NET.Sdk.StaticWebAssets.Tests (8)
StaticWebAssetEndpointsIntegrationTest.cs (4)
231var gzipCompressedAppJsEndpoint = appJsEndpoints.Where(ep => ep.Selectors.Length == 1 && ep.Selectors[0].Value == "gzip"); 245var brotliCompressedAppJsEndpoint = appJsEndpoints.Where(ep => ep.Selectors.Length == 1 && ep.Selectors[0].Value == "br"); 341var appGzAssetEndpoint = appJsEndpoints.Where(ep => ep.Selectors.Length == 1 && ep.Selectors[0].Value == "gzip"); 350var appBrAssetEndpoint = appJsEndpoints.Where(ep => ep.Selectors.Length == 1 && ep.Selectors[0].Value == "br");
StaticWebAssetsBaselineComparer.cs (4)
140Array.Sort(endpoint.Selectors, (a, b) => (a.Name, a.Value).CompareTo((b.Name, b.Value))); 495assetDifferences.Add($"Expected manifest to have selector '{difference.Name}={difference.Value};q={difference.Quality}' but it was not found."); 499assetDifferences.Add($"Found unexpected selector '{difference.Name}={difference.Value};q={difference.Quality}'.");