2 instantiations of ComponentParameter
Microsoft.AspNetCore.Components.Endpoints (2)
Generated\361d1da7f942c932\ServerComponentJsonContext.ComponentParameter.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.AspNetCore.Components.
ComponentParameter
(),
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (1)
21
parameterDefinitions.Add(new
ComponentParameter
62 references to ComponentParameter
Microsoft.AspNetCore.Components.Endpoints (62)
DependencyInjection\WebAssemblyComponentSerializer.cs (1)
15
var (definitions, values) =
ComponentParameter
.FromParameterView(parameters);
Generated\361d1da7f942c932\ServerComponentJsonContext.ComponentParameter.g.cs (26)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
>? _ComponentParameter;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
> ComponentParameter
22
get => _ComponentParameter ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
> Create_ComponentParameter(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.
ComponentParameter
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.
ComponentParameter
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentParameter
)obj).Name,
61
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentParameter
>(obj).Name = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
).GetProperty("Name", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
80
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
),
82
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentParameter
)obj).TypeName,
83
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentParameter
>(obj).TypeName = value!,
90
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
).GetProperty("TypeName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
100
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
),
102
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentParameter
)obj).Assembly,
103
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentParameter
>(obj).Assembly = value!,
110
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
).GetProperty("Assembly", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
120
private void ComponentParameterSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.
ComponentParameter
value)
124
writer.WriteString(PropName_Name, ((global::Microsoft.AspNetCore.Components.
ComponentParameter
)value).Name);
125
writer.WriteString(PropName_TypeName, ((global::Microsoft.AspNetCore.Components.
ComponentParameter
)value).TypeName);
126
writer.WriteString(PropName_Assembly, ((global::Microsoft.AspNetCore.Components.
ComponentParameter
)value).Assembly);
Generated\361d1da7f942c932\ServerComponentJsonContext.ComponentParameterArray.g.cs (10)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
[]>? _ComponentParameterArray;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
[]> ComponentParameterArray
22
get => _ComponentParameterArray ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
[]>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
[]));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
[]> Create_ComponentParameterArray(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.
ComponentParameter
[]>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
[]> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::Microsoft.AspNetCore.Components.
ComponentParameter
[]>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateArrayInfo<global::Microsoft.AspNetCore.Components.
ComponentParameter
>(options, info);
47
private void ComponentParameterArraySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.
ComponentParameter
[]? value)
Generated\361d1da7f942c932\ServerComponentJsonContext.GetJsonTypeInfo.g.cs (3)
38
if (type == typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
))
42
if (type == typeof(global::Microsoft.AspNetCore.Components.
ComponentParameter
[]))
54
if (type == typeof(global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>))
Generated\361d1da7f942c932\ServerComponentJsonContext.IListComponentParameter.g.cs (11)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>>? _IListComponentParameter;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>> IListComponentParameter
22
get => _IListComponentParameter ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>> Create_IListComponentParameter(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIListInfo<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>, global::Microsoft.AspNetCore.Components.
ComponentParameter
>(options, info);
47
private void IListComponentParameterSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>? value)
Generated\361d1da7f942c932\ServerComponentJsonContext.ServerComponent.g.cs (3)
137
var info4 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>>
152
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ServerComponent).GetProperty("ParameterDefinitions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>), global::System.Array.Empty<global::System.Type>(), null),
155
properties[4] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Collections.Generic.IList<global::Microsoft.AspNetCore.Components.
ComponentParameter
>>(options, info4);
src\aspnetcore\src\Shared\Components\ComponentParameter.cs (2)
14
public static (IList<
ComponentParameter
> parameterDefinitions, IList<object?> parameterValues) FromParameterView(ParameterView parameters)
16
var parameterDefinitions = new List<
ComponentParameter
>();
src\aspnetcore\src\Shared\Components\ServerComponent.cs (2)
18
IList<
ComponentParameter
> parametersDefinitions,
37
public IList<
ComponentParameter
> ParameterDefinitions { get; set; }
src\aspnetcore\src\Shared\Components\ServerComponentSerializationSettings.cs (3)
56
[JsonSerializable(typeof(
ComponentParameter
))]
57
[JsonSerializable(typeof(
ComponentParameter
[]))]
58
[JsonSerializable(typeof(IList<
ComponentParameter
>))]
src\aspnetcore\src\Shared\Components\ServerComponentSerializer.cs (1)
40
var (definitions, values) =
ComponentParameter
.FromParameterView(parameters);