53 writes to Value
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (3)
StaticWebAssetsBaselineFactory.cs (3)
156
property.
Value
= "__fingerprint__";
160
property.
Value
= "__integrity__";
163
property.
Value
= "__original-resource__";
Microsoft.NET.Sdk.StaticWebAssets.Tasks (7)
ApplyCompressionNegotiation.cs (1)
265
Value
= header.Value
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
51
property.
Value
= StaticWebAsset.CombineNormalizedPaths("", asset.BasePath, property.Value, '/');
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 },
341
Value
= operation.Value
Microsoft.NET.Sdk.StaticWebAssets.Tests (43)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (20)
241
Value
= "fingerprint"
246
Value
= "sha256-original"
251
Value
= "candidate.js"
307
Value
= "fingerprint"
312
Value
= "sha256-original"
317
Value
= "candidate.js"
360
Value
= "fingerprint"
365
Value
= "sha256-original"
370
Value
= "candidate.js"
418
Value
= "fingerprint"
423
Value
= "sha256-compressed-brotli"
428
Value
= "candidate.js.br"
476
Value
= "fingerprint"
481
Value
= "sha256-compressed-gzip"
486
Value
= "candidate.js.gz"
542
Value
= "sha256-original"
598
Value
= "sha256-original"
641
Value
= "sha256-original"
689
Value
= "sha256-compressed-brotli"
729
Value
= "sha256-compressed-gzip"
StaticWebAssets\ComputeEndpointsForReferenceStaticWebAssetsTest.cs (1)
142
? [new StaticWebAssetEndpointProperty { Name = "label",
Value
= "label-value" }]
StaticWebAssets\DefineStaticWebAssetEndpointsTest.cs (9)
131
Value
= "1234asdf"
136
Value
= "sha256-asdf1234"
141
Value
= "candidate.js"
248
Value
= "yolo"
253
Value
= "sha256-asdf1234"
258
Value
= "candidate.js"
542
Value
= "C5tBAdQX"
547
Value
= "sha256-asdf1234"
552
Value
= "assets/index-.css"
StaticWebAssets\GenerateStaticWebAssetEndpointsManifestTest.cs (8)
52
Value
= "fingerprint"
56
Value
= "sha256-integrity"
60
Value
= "index.html"
95
Value
= "fingerprint"
99
Value
= "sha256-integrity"
103
Value
= "index.js"
137
Value
= "sha256-integrity"
170
Value
= "sha256-integrity"
StaticWebAssets\GenerateStaticWebAssetEndpointsPropsFileTest.cs (2)
77
Value
= "__integrity__"
147
Value
= "__integrity__"
StaticWebAssetsBaselineFactory.cs (3)
156
property.
Value
= "__fingerprint__";
160
property.
Value
= "__integrity__";
163
property.
Value
= "__original-resource__";
33 references to Value
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (3)
StaticWebAssetsBaselineComparer.cs (2)
142
Array.Sort(endpoint.EndpointProperties, (a, b) => (a.Name, a.
Value
).CompareTo((b.Name, b.
Value
)));
StaticWebAssetsBaselineFactory.cs (1)
157
endpoint.Route = endpoint.Route.Replace(property.
Value
, $"__{property.Name}__");
Microsoft.NET.Sdk.StaticWebAssets.Tasks (23)
ApplyCompressionNegotiation.cs (2)
353
return string.Equals(compressedFingerprint.
Value
, relatedFingerprint.
Value
, StringComparison.Ordinal);
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
51
property.Value = StaticWebAsset.CombineNormalizedPaths("", asset.BasePath, property.
Value
, '/');
Data\StaticWebAssetEndpoint.cs (2)
335
propertyComparison = EndpointProperties[i].
Value
.CompareTo(other.EndpointProperties[i].
Value
);
Data\StaticWebAssetEndpointProperty.cs (6)
31
0 => string.CompareOrdinal(
Value
, other.
Value
),
40
string.Equals(
Value
, other.
Value
, 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)
183
resourceAsset.Label = property.
Value
;
187
resourceAsset.Integrity = property.
Value
;
191
resourceAsset.PreloadGroup = property.
Value
;
195
resourceAsset.PreloadRel = property.
Value
;
199
resourceAsset.PreloadAs = property.
Value
;
203
resourceAsset.PreloadPriority = property.
Value
;
207
resourceAsset.PreloadCrossorigin = property.
Value
;
211
if (!int.TryParse(property.
Value
, out int order))
UpdateStaticWebAssetEndpoints.cs (3)
140
var (properties, propertyRemoved) = RemoveAllIfFound(endpoint.EndpointProperties, p => p.Name, p => p.
Value
, operation.Name, operation.Value);
238
p => p.
Value
,
298
var (properties, propertyRemoved) = RemoveFirstIfFound(endpoint.EndpointProperties, p => p.Name, p => p.
Value
, operation.Name, operation.Value);
Microsoft.NET.Sdk.StaticWebAssets.Tests (7)
StaticWebAssetEndpointsIntegrationTest.cs (2)
114
} && fingerprint == ep.EndpointProperties.Single(p => p.Name == "fingerprint").
Value
;
159
} && fingerprint == ep.EndpointProperties.Single(p => p.Name == "fingerprint").
Value
;
StaticWebAssets\ApplyCompressionNegotiationTest.cs (1)
1629
compressedEndpoint.EndpointProperties.Should().Contain(p => p.Name == "original-resource" && p.
Value
== "\"original-etag\"");
StaticWebAssets\ComputeEndpointsForReferenceStaticWebAssetsTest.cs (1)
66
properties[0].
Value
.Should().Be("base/label-value");
StaticWebAssetsBaselineComparer.cs (2)
142
Array.Sort(endpoint.EndpointProperties, (a, b) => (a.Name, a.
Value
).CompareTo((b.Name, b.
Value
)));
StaticWebAssetsBaselineFactory.cs (1)
157
endpoint.Route = endpoint.Route.Replace(property.
Value
, $"__{property.Name}__");