17 instantiations of ResourceAssetProperty
Microsoft.AspNetCore.Components.Endpoints (9)
_generated\10\ResourceCollectionSerializerContext.ResourceAssetProperty.g.cs (1)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Components.ResourceAssetProperty((string)args[0], (string)args[1]),
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (8)
165properties[index++] = new ResourceAssetProperty("label", label); 169properties[index++] = new ResourceAssetProperty("integrity", integrity); 173properties[index++] = new ResourceAssetProperty("preloadrel", preloadRel); 177properties[index++] = new ResourceAssetProperty("preloadas", preloadAs); 181properties[index++] = new ResourceAssetProperty("preloadpriority", preloadPriority); 185properties[index++] = new ResourceAssetProperty("preloadcrossorigin", preloadCrossorigin); 189properties[index++] = new ResourceAssetProperty("preloadorder", preloadOrder); 193properties[index++] = new ResourceAssetProperty("preloadgroup", preloadGroup);
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (8)
165properties[index++] = new ResourceAssetProperty("label", label); 169properties[index++] = new ResourceAssetProperty("integrity", integrity); 173properties[index++] = new ResourceAssetProperty("preloadrel", preloadRel); 177properties[index++] = new ResourceAssetProperty("preloadas", preloadAs); 181properties[index++] = new ResourceAssetProperty("preloadpriority", preloadPriority); 185properties[index++] = new ResourceAssetProperty("preloadcrossorigin", preloadCrossorigin); 189properties[index++] = new ResourceAssetProperty("preloadorder", preloadOrder); 193properties[index++] = new ResourceAssetProperty("preloadgroup", preloadGroup);
52 references to ResourceAssetProperty
Microsoft.AspNetCore.Components (3)
ResourceAsset.cs (2)
15public sealed class ResourceAsset(string url, IReadOnlyList<ResourceAssetProperty>? properties = null) 25public IReadOnlyList<ResourceAssetProperty>? Properties { get; } = properties;
ResourceAssetCollection.cs (1)
34foreach (var property in resource.Properties ?? [])
Microsoft.AspNetCore.Components.Endpoints (48)
_generated\10\ResourceCollectionSerializerContext.ResourceAssetProperty.g.cs (19)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>? _ResourceAssetProperty; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ResourceAssetProperty> ResourceAssetProperty 24get => _ResourceAssetProperty ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ResourceAssetProperty> Create_ResourceAssetProperty(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ResourceAssetProperty> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.ResourceAssetProperty> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(string)}, modifiers: null), 43jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>(options, objectInfo); 60DeclaringType = typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty), 62Getter = static obj => ((global::Microsoft.AspNetCore.Components.ResourceAssetProperty)obj).Name, 70AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 81DeclaringType = typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty), 83Getter = static obj => ((global::Microsoft.AspNetCore.Components.ResourceAssetProperty)obj).Value, 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty).GetProperty("Value", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 102private void ResourceAssetPropertySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.ResourceAssetProperty? value) 112string __value_Name = ((global::Microsoft.AspNetCore.Components.ResourceAssetProperty)value).Name; 117string __value_Value = ((global::Microsoft.AspNetCore.Components.ResourceAssetProperty)value).Value;
_generated\12\ResourceCollectionSerializerContext.IReadOnlyListResourceAssetProperty.g.cs (12)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>? _IReadOnlyListResourceAssetProperty; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> IReadOnlyListResourceAssetProperty 24get => _IReadOnlyListResourceAssetProperty ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> Create_IReadOnlyListResourceAssetProperty(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> jsonTypeInfo)) 31var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>, global::Microsoft.AspNetCore.Components.ResourceAssetProperty>(options, info); 49private void IReadOnlyListResourceAssetPropertySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>? value) 59foreach (global::Microsoft.AspNetCore.Components.ResourceAssetProperty element in value)
_generated\15\ResourceCollectionSerializerContext.GetJsonTypeInfo.g.cs (2)
32if (type == typeof(global::Microsoft.AspNetCore.Components.ResourceAssetProperty)) 40if (type == typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>))
_generated\8\ResourceCollectionSerializerContext.ResourceAsset.g.cs (8)
34ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Components.ResourceAsset((string)args[0], (global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>)args[1]), 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAsset).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(string), typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>)}, modifiers: null), 76var info1 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>> 91AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ResourceAsset).GetProperty("Properties", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>), global::System.Array.Empty<global::System.Type>(), null), 94properties[1] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>>(options, info1); 116global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty> __value_Properties = ((global::Microsoft.AspNetCore.Components.ResourceAsset)value).Properties; 141ParameterType = typeof(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>), 144DefaultValue = default(global::System.Collections.Generic.IReadOnlyList<global::Microsoft.AspNetCore.Components.ResourceAssetProperty>),
Assets\ImportMapDefinition.cs (1)
91var property = asset.Properties[i];
Builder\ResourceCollectionUrlEndpoint.cs (1)
151foreach (var property in resource.Properties)
Builder\ResourcePreloadCollection.cs (3)
23foreach (var property in asset.Properties) 52private static PreloadAsset CreateAsset(string url, IEnumerable<ResourceAssetProperty> properties) 55foreach (var property in properties)
src\aspnetcore\src\Components\Shared\src\ResourceCollectionProvider.cs (1)
49[DynamicDependency(JsonSerialized, typeof(ResourceAssetProperty))]
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
161var properties = new ResourceAssetProperty[foundProperties];
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
161var properties = new ResourceAssetProperty[foundProperties];