7 instantiations of StaticWebAssetEndpointProperty
Microsoft.NET.Sdk.StaticWebAssets.Tasks (7)
_generated\9\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointProperty.g.cs (1)
31ObjectCreator = () => new global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty(),
ApplyCompressionNegotiation.cs (1)
262endpointProperties.Add(new StaticWebAssetEndpointProperty
DefineStaticWebAssetEndpoints.cs (3)
210properties[i++] = new StaticWebAssetEndpointProperty { Name = value.Key, Value = value.Value }; 219properties[i++] = new StaticWebAssetEndpointProperty { Name = "label", Value = label }; 224properties[i++] = new StaticWebAssetEndpointProperty { Name = "integrity", Value = $"sha256-{asset.Integrity}" };
UpdateStaticWebAssetEndpoints.cs (2)
239(name, value) => new StaticWebAssetEndpointProperty { Name = name, Value = value }, 338new StaticWebAssetEndpointProperty
61 references to StaticWebAssetEndpointProperty
Microsoft.NET.Sdk.StaticWebAssets.Tasks (61)
_generated\10\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointPropertyArray.g.cs (10)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]>? _StaticWebAssetEndpointPropertyArray; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]> StaticWebAssetEndpointPropertyArray 22get => _StaticWebAssetEndpointPropertyArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[])); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]> Create_StaticWebAssetEndpointPropertyArray(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]> jsonTypeInfo)) 29var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]> 35jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty>(options, info); 45private void StaticWebAssetEndpointPropertyArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]? value)
_generated\30\StaticWebAssetsJsonSerializerContext.GetJsonTypeInfo.g.cs (2)
58if (type == typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty)) 62if (type == typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]))
_generated\7\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpoint.g.cs (3)
151var info5 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]> 166AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpoint).GetProperty("EndpointProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]), global::System.Array.Empty<global::System.Type>(), null), 169properties[5] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty[]>(options, info5);
_generated\9\StaticWebAssetsJsonSerializerContext.StaticWebAssetEndpointProperty.g.cs (21)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty>? _StaticWebAssetEndpointProperty; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty> StaticWebAssetEndpointProperty 22get => _StaticWebAssetEndpointProperty ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty> Create_StaticWebAssetEndpointProperty(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty), 58Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty)obj).Name, 59Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty>(obj).Name = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty), 78Getter = static obj => ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty)obj).Value, 79Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty>(obj).Value = value!, 86AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 96private void StaticWebAssetEndpointPropertySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty value) 100writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty)value).Name); 101writer.WriteString(PropName_Value, ((global::Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAssetEndpointProperty)value).Value);
ApplyCompressionNegotiation.cs (4)
352var compressedFingerprint = ResolveFingerprint(compressedEndpoint); 353var relatedFingerprint = ResolveFingerprint(relatedEndpointCandidate); 357private static StaticWebAssetEndpointProperty ResolveFingerprint(StaticWebAssetEndpoint compressedEndpoint) 359foreach (var property in compressedEndpoint.EndpointProperties)
ComputeEndpointsForReferenceStaticWebAssets.cs (1)
51ref var property = ref candidateEndpoint.EndpointProperties[j];
Data\StaticWebAssetEndpoint.cs (7)
18private StaticWebAssetEndpointProperty[] _endpointProperties; 152public StaticWebAssetEndpointProperty[] EndpointProperties 156_endpointProperties ??= StaticWebAssetEndpointProperty.FromMetadataValue(EndpointPropertiesString); 304$"{nameof(StaticWebAssetEndpoint)}: Route = {Route}, AssetFile = {AssetFile}, Selectors = {StaticWebAssetEndpointSelector.ToMetadataValue(Selectors ?? [])}, ResponseHeaders = {ResponseHeaders?.Length}, EndpointProperties = {StaticWebAssetEndpointProperty.ToMetadataValue(EndpointProperties ?? [])}"; 487nameof(EndpointProperties) => !_endpointPropertiesModified ? EndpointPropertiesString ?? "" : StaticWebAssetEndpointProperty.ToMetadataValue(EndpointProperties), 534{ nameof(EndpointProperties), !_endpointPropertiesModified ? EndpointPropertiesString ?? "" : StaticWebAssetEndpointProperty.ToMetadataValue(EndpointProperties) } 560destinationItem.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)
206var 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];