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