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