46 instantiations of StaticWebAssetEndpointProperty
Microsoft.NET.Sdk.StaticWebAssets.Tasks (6)
ApplyCompressionNegotiation.cs (1)
262
endpointProperties.Add(new
StaticWebAssetEndpointProperty
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 },
338
new
StaticWebAssetEndpointProperty
Microsoft.NET.Sdk.StaticWebAssets.Tests (40)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (20)
238
new
()
243
new
()
248
new
()
304
new
()
309
new
()
314
new
()
357
new
()
362
new
()
367
new
()
415
new
()
420
new
()
425
new
()
473
new
()
478
new
()
483
new
()
539
new
()
595
new
()
638
new
()
686
new
()
727
new
() {
StaticWebAssets\ComputeEndpointsForReferenceStaticWebAssetsTest.cs (1)
142
? [new
StaticWebAssetEndpointProperty
{ Name = "label", Value = "label-value" }]
StaticWebAssets\DefineStaticWebAssetEndpointsTest.cs (9)
128
new
StaticWebAssetEndpointProperty
133
new
StaticWebAssetEndpointProperty
138
new
StaticWebAssetEndpointProperty
245
new
StaticWebAssetEndpointProperty
250
new
StaticWebAssetEndpointProperty
255
new
StaticWebAssetEndpointProperty
539
new
StaticWebAssetEndpointProperty
544
new
StaticWebAssetEndpointProperty
549
new
StaticWebAssetEndpointProperty
StaticWebAssets\GenerateStaticWebAssetEndpointsManifestTest.cs (8)
50
new
() {
54
new
() {
58
new
() {
93
new
() {
97
new
() {
101
new
() {
135
new
() {
168
new
() {
StaticWebAssets\GenerateStaticWebAssetEndpointsPropsFileTest.cs (2)
74
new
StaticWebAssetEndpointProperty
144
new
StaticWebAssetEndpointProperty
31 references to StaticWebAssetEndpointProperty
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (1)
StaticWebAssetsBaselineFactory.cs (1)
152
ref
var
property = ref endpoint.EndpointProperties[i];
Microsoft.NET.Sdk.StaticWebAssets.Tasks (25)
ApplyCompressionNegotiation.cs (4)
351
var
compressedFingerprint = ResolveFingerprint(compressedEndpoint);
352
var
relatedFingerprint = ResolveFingerprint(relatedEndpointCandidate);
356
private static
StaticWebAssetEndpointProperty
ResolveFingerprint(StaticWebAssetEndpoint compressedEndpoint)
358
foreach (
var
property in compressedEndpoint.EndpointProperties)
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
48
ref
var
property = ref candidateEndpoint.EndpointProperties[j];
Data\StaticWebAssetEndpoint.cs (7)
17
private
StaticWebAssetEndpointProperty
[] _endpointProperties;
126
public
StaticWebAssetEndpointProperty
[] EndpointProperties
130
_endpointProperties ??=
StaticWebAssetEndpointProperty
.FromMetadataValue(EndpointPropertiesString);
278
$"{nameof(StaticWebAssetEndpoint)}: Route = {Route}, AssetFile = {AssetFile}, Selectors = {StaticWebAssetEndpointSelector.ToMetadataValue(Selectors ?? [])}, ResponseHeaders = {ResponseHeaders?.Length}, EndpointProperties = {
StaticWebAssetEndpointProperty
.ToMetadataValue(EndpointProperties ?? [])}";
459
nameof(EndpointProperties) => !_endpointPropertiesModified ? EndpointPropertiesString ?? "" :
StaticWebAssetEndpointProperty
.ToMetadataValue(EndpointProperties),
502
{ nameof(EndpointProperties), !_endpointPropertiesModified ? EndpointPropertiesString ?? "" :
StaticWebAssetEndpointProperty
.ToMetadataValue(EndpointProperties) }
527
destinationItem.SetMetadata(nameof(EndpointProperties), !_endpointPropertiesModified ? EndpointPropertiesString ?? "" :
StaticWebAssetEndpointProperty
.ToMetadataValue(EndpointProperties));
Data\StaticWebAssetEndpointProperty.cs (8)
13
public struct StaticWebAssetEndpointProperty : IComparable<
StaticWebAssetEndpointProperty
>, IEquatable<
StaticWebAssetEndpointProperty
>
15
private static readonly JsonTypeInfo<
StaticWebAssetEndpointProperty
[]> _jsonTypeInfo =
22
internal static
StaticWebAssetEndpointProperty
[] FromMetadataValue(string value) => string.IsNullOrEmpty(value) ? [] : JsonSerializer.Deserialize(value, _jsonTypeInfo);
24
internal static string ToMetadataValue(
StaticWebAssetEndpointProperty
[] responseHeaders) =>
29
public int CompareTo(
StaticWebAssetEndpointProperty
other) => string.CompareOrdinal(Name, other.Name) switch
35
public override bool Equals(object obj) => obj is
StaticWebAssetEndpointProperty
endpointProperty &&
38
public bool Equals(
StaticWebAssetEndpointProperty
other) =>
DefineStaticWebAssetEndpoints.cs (1)
167
var properties = new
StaticWebAssetEndpointProperty
[values.Count + (values.Count > 0 ? 2 : 1)];
FilterStaticWebAssetEndpoints.cs (1)
87
var
property = endpoint.EndpointProperties[j];
GenerateStaticWebAssetEndpointsPropsFile.cs (1)
58
new XElement(nameof(StaticWebAssetEndpoint.EndpointProperties), new XCData(
StaticWebAssetEndpointProperty
.ToMetadataValue(element.EndpointProperties))),
OverrideHtmlAssetPlaceholders.cs (1)
180
var
property = endpoint.EndpointProperties[i];
ResolveFingerprintedStaticWebAssetEndpointsForAssets.cs (1)
103
var
property = endpoint.EndpointProperties[i];
Microsoft.NET.Sdk.StaticWebAssets.Tests (5)
StaticWebAssets\ApplyCompressionNegotiationTest.cs (1)
1486
StaticWebAssetEndpointProperty
[] properties = null)
StaticWebAssets\ComputeEndpointsForReferenceStaticWebAssetsTest.cs (1)
63
var properties =
StaticWebAssetEndpointProperty
.FromMetadataValue(task.Endpoints[0].GetMetadata("EndpointProperties"));
StaticWebAssets\DefineStaticWebAssetEndpointsTest.cs (1)
642
StaticWebAssetEndpointProperty
[] properties = null)
StaticWebAssets\GenerateStaticWebAssetEndpointsPropsFileTest.cs (1)
206
StaticWebAssetEndpointProperty
[] properties = null)
StaticWebAssetsBaselineFactory.cs (1)
152
ref
var
property = ref endpoint.EndpointProperties[i];