46 writes to Name
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
ApplyCompressionNegotiation.cs (1)
264
Name
= "original-resource",
DefineStaticWebAssetEndpoints.cs (3)
171
properties[i++] = new StaticWebAssetEndpointProperty {
Name
= value.Key, Value = value.Value };
180
properties[i++] = new StaticWebAssetEndpointProperty {
Name
= "label", Value = label };
185
properties[i++] = new StaticWebAssetEndpointProperty {
Name
= "integrity", Value = $"sha256-{asset.Integrity}" };
UpdateStaticWebAssetEndpoints.cs (2)
239
(name, value) => new StaticWebAssetEndpointProperty {
Name
= name, Value = value },
340
Name
= operation.Name,
Microsoft.NET.Sdk.StaticWebAssets.Tests (40)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (20)
240
Name
= "fingerprint",
245
Name
= "integrity",
250
Name
= "label",
306
Name
= "fingerprint",
311
Name
= "integrity",
316
Name
= "label",
359
Name
= "fingerprint",
364
Name
= "integrity",
369
Name
= "label",
417
Name
= "fingerprint",
422
Name
= "integrity",
427
Name
= "label",
475
Name
= "fingerprint",
480
Name
= "integrity",
485
Name
= "label",
541
Name
= "integrity",
597
Name
= "integrity",
640
Name
= "integrity",
688
Name
= "integrity",
728
Name
= "integrity",
StaticWebAssets\ComputeEndpointsForReferenceStaticWebAssetsTest.cs (1)
142
? [new StaticWebAssetEndpointProperty {
Name
= "label", Value = "label-value" }]
StaticWebAssets\DefineStaticWebAssetEndpointsTest.cs (9)
130
Name
= "fingerprint",
135
Name
= "integrity",
140
Name
= "label",
247
Name
= "fingerprint",
252
Name
= "integrity",
257
Name
= "label",
541
Name
= "fingerprint",
546
Name
= "integrity",
551
Name
= "label",
StaticWebAssets\GenerateStaticWebAssetEndpointsManifestTest.cs (8)
51
Name
= "fingerprint",
55
Name
= "integrity",
59
Name
= "label",
94
Name
= "fingerprint",
98
Name
= "integrity",
102
Name
= "label",
136
Name
= "integrity",
169
Name
= "integrity",
StaticWebAssets\GenerateStaticWebAssetEndpointsPropsFileTest.cs (2)
76
Name
= "integrity",
146
Name
= "integrity",
45 references to Name
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (4)
StaticWebAssetsBaselineComparer.cs (2)
142
Array.Sort(endpoint.EndpointProperties, (a, b) => (a.
Name
, a.Value).CompareTo((b.
Name
, b.Value)));
StaticWebAssetsBaselineFactory.cs (2)
153
switch (property.
Name
)
157
endpoint.Route = endpoint.Route.Replace(property.Value, $"__{property.
Name
}__");
Microsoft.NET.Sdk.StaticWebAssets.Tasks (23)
ApplyCompressionNegotiation.cs (1)
360
if (string.Equals(property.
Name
, "fingerprint", StringComparison.Ordinal))
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
49
if (string.Equals(property.
Name
, "label", StringComparison.OrdinalIgnoreCase))
Data\StaticWebAssetEndpoint.cs (2)
329
var propertyComparison = EndpointProperties[i].
Name
.CompareTo(other.EndpointProperties[i].
Name
);
Data\StaticWebAssetEndpointProperty.cs (6)
29
public int CompareTo(StaticWebAssetEndpointProperty other) => string.CompareOrdinal(
Name
, other.
Name
) switch
39
string.Equals(
Name
, other.
Name
, StringComparison.Ordinal) &&
50
return HashCode.Combine(
Name
, Value);
54
private string GetDebuggerDisplay() => $"Name: {
Name
}, Value: {Value}";
FilterStaticWebAssetEndpoints.cs (1)
88
if (MeetsCriteria(criteria, property.
Name
, property.Value))
OverrideHtmlAssetPlaceholders.cs (8)
181
if (property.
Name
.Equals("label", StringComparison.OrdinalIgnoreCase))
185
else if (property.
Name
.Equals("integrity", StringComparison.OrdinalIgnoreCase))
189
else if (property.
Name
.Equals("preloadgroup", StringComparison.OrdinalIgnoreCase))
193
else if (property.
Name
.Equals("preloadrel", StringComparison.OrdinalIgnoreCase))
197
else if (property.
Name
.Equals("preloadas", StringComparison.OrdinalIgnoreCase))
201
else if (property.
Name
.Equals("preloadpriority", StringComparison.OrdinalIgnoreCase))
205
else if (property.
Name
.Equals("preloadcrossorigin", StringComparison.OrdinalIgnoreCase))
209
else if (property.
Name
.Equals("preloadorder", StringComparison.OrdinalIgnoreCase))
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (1)
104
if (string.Equals(property.
Name
, "fingerprint", StringComparison.OrdinalIgnoreCase))
UpdateStaticWebAssetEndpoints.cs (3)
140
var (properties, propertyRemoved) = RemoveAllIfFound(endpoint.EndpointProperties, p => p.
Name
, p => p.Value, operation.Name, operation.Value);
237
p => p.
Name
,
298
var (properties, propertyRemoved) = RemoveFirstIfFound(endpoint.EndpointProperties, p => p.
Name
, p => p.Value, operation.Name, operation.Value);
Microsoft.NET.Sdk.StaticWebAssets.Tests (18)
StaticWebAssetEndpointsIntegrationTest.cs (3)
114
} && fingerprint == ep.EndpointProperties.Single(p => p.
Name
== "fingerprint").Value;
159
} && fingerprint == ep.EndpointProperties.Single(p => p.
Name
== "fingerprint").Value;
542
endpointsByAssetFile[file].Where(e => e.EndpointProperties.Any(p => p.
Name
== "integrity")).Count().Should().Be(1);
StaticWebAssets\ApplyCompressionNegotiationTest.cs (2)
1629
compressedEndpoint.EndpointProperties.Should().Contain(p => p.
Name
== "original-resource" && p.Value == "\"original-etag\"");
1697
compressedEndpoint.EndpointProperties.Should().NotContain(p => p.
Name
== "original-resource");
StaticWebAssets\ComputeEndpointsForReferenceStaticWebAssetsTest.cs (1)
65
properties[0].
Name
.Should().Be("label");
StaticWebAssets\FilterStaticWebAssetEndpointsTest.cs (2)
91
filteredEndpoints.Should().AllSatisfy(e => e.EndpointProperties.Should().ContainSingle(p => p.
Name
== "fingerprint"));
239
filteredEndpoints.Should().AllSatisfy(e => e.EndpointProperties.Should().ContainSingle(p => p.
Name
== "fingerprint"));
StaticWebAssets\UpdateStaticWebAssetEndpointsTest.cs (6)
30
var fingerprintedEndpoints = endpoints.Where(e => e.EndpointProperties.Any(p => string.Equals(p.
Name
, "fingerprint", StringComparison.Ordinal))).ToArray();
75
var fingerprintedEndpoints = endpoints.Where(e => e.EndpointProperties.Any(p => string.Equals(p.
Name
, "fingerprint", StringComparison.Ordinal))).ToArray();
116
var fingerprintedEndpoints = endpoints.Where(e => e.EndpointProperties.Any(p => string.Equals(p.
Name
, "fingerprint", StringComparison.Ordinal))).ToArray();
161
var fingerprintedEndpoints = endpoints.Where(e => e.EndpointProperties.Any(p => string.Equals(p.
Name
, "fingerprint", StringComparison.Ordinal))).ToArray();
207
var fingerprintedEndpoints = endpoints.Where(e => e.EndpointProperties.Any(p => string.Equals(p.
Name
, "fingerprint", StringComparison.Ordinal))).ToArray();
248
var fingerprintedEndpoints = endpoints.Where(e => e.EndpointProperties.Any(p => string.Equals(p.
Name
, "fingerprint", StringComparison.Ordinal))).ToArray();
StaticWebAssetsBaselineComparer.cs (2)
142
Array.Sort(endpoint.EndpointProperties, (a, b) => (a.
Name
, a.Value).CompareTo((b.
Name
, b.Value)));
StaticWebAssetsBaselineFactory.cs (2)
153
switch (property.
Name
)
157
endpoint.Route = endpoint.Route.Replace(property.Value, $"__{property.
Name
}__");