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