25 writes to Name
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
ApplyCompressionNegotiation.cs (1)
246
Name
= "Content-Encoding",
UpdateStaticWebAssetEndpoints.cs (2)
209
(name, value) => new StaticWebAssetEndpointSelector {
Name
= name, Value = value, Quality = operation.Quality },
321
Name
= operation.Name,
Microsoft.NET.Sdk.StaticWebAssets.Tests (22)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (18)
89
Selectors = [ new () {
Name
= "Content-Encoding", Value = "gzip", Quality = "0.100000000000" } ],
196
Name
= "Content-Encoding",
262
Name
= "Content-Encoding",
497
Name
= "Content-Encoding",
553
Name
= "Content-Encoding",
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)
68
Name
= "Content-Encoding",
138
Name
= "Content-Encoding",
StaticWebAssets\UpdateStaticWebAssetEndpointsTest.cs (1)
254
Selectors = [new StaticWebAssetEndpointSelector {
Name
= "Content-Encoding", Value = "gzip" }],
21 references to Name
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 (13)
ApplyCompressionNegotiation.cs (1)
311
if (string.Equals(selector.
Name
, "Content-Encoding", StringComparison.Ordinal))
Data\StaticWebAssetEndpoint.cs (2)
305
var selectorComparison = Selectors[i].
Name
.CompareTo(other.Selectors[i].
Name
);
Data\StaticWebAssetEndpointSelector.cs (6)
33
var nameComparison = string.CompareOrdinal(
Name
, other.
Name
);
52
string.Equals(
Name
, other.
Name
, 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);
207
s => s.
Name
,
282
var (selectors, selectorRemoved) = RemoveFirstIfFound(endpoint.Selectors, s => s.
Name
, s => s.Value, operation.Name, operation.Value);
Microsoft.NET.Sdk.StaticWebAssets.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}'.");