2 instantiations of ComponentMarker
Microsoft.AspNetCore.Components.Endpoints (2)
_generated\37\ServerComponentJsonContext.ComponentMarker.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.AspNetCore.Components.
ComponentMarker
(),
src\aspnetcore\src\Shared\Components\ComponentMarker.cs (1)
67
return
new
()
89 references to ComponentMarker
Microsoft.AspNetCore.Components.Endpoints (89)
_generated\37\ServerComponentJsonContext.ComponentMarker.g.cs (56)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentMarker
>? _ComponentMarker;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentMarker
> ComponentMarker
22
get => _ComponentMarker ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentMarker
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentMarker
> Create_ComponentMarker(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.
ComponentMarker
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.
ComponentMarker
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).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.
ComponentMarker
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
60
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).Type,
61
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).Type = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
80
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).PrerenderId,
81
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).PrerenderId = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("PrerenderId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
100
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).Key,
101
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).Key = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("Key", InstanceMemberBindingFlags, null, typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey?), global::System.Array.Empty<global::System.Type>(), null),
118
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
120
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).Sequence,
121
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).Sequence = value!,
128
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("Sequence", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null),
138
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
140
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).Descriptor,
141
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).Descriptor = value!,
148
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("Descriptor", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
158
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
160
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).Assembly,
161
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).Assembly = value!,
168
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("Assembly", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
178
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
180
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).TypeName,
181
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).TypeName = value!,
188
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("TypeName", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
198
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
200
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).ParameterDefinitions,
201
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).ParameterDefinitions = value!,
208
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("ParameterDefinitions", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
218
DeclaringType = typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
),
220
Getter = static obj => ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)obj).ParameterValues,
221
Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.
ComponentMarker
>(obj).ParameterValues = value!,
228
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
).GetProperty("ParameterValues", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
238
private void ComponentMarkerSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.
ComponentMarker
value)
242
writer.WriteString(PropName_Type, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).Type);
243
writer.WriteString(PropName_PrerenderId, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).PrerenderId);
245
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).Key, NullableComponentMarkerKey);
247
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).Sequence, NullableInt32);
248
writer.WriteString(PropName_Descriptor, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).Descriptor);
249
writer.WriteString(PropName_Assembly, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).Assembly);
250
writer.WriteString(PropName_TypeName, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).TypeName);
251
writer.WriteString(PropName_ParameterDefinitions, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).ParameterDefinitions);
252
writer.WriteString(PropName_ParameterValues, ((global::Microsoft.AspNetCore.Components.
ComponentMarker
)value).ParameterValues);
_generated\43\ServerComponentJsonContext.IEnumerableComponentMarker.g.cs (12)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>>? _IEnumerableComponentMarker;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>> IEnumerableComponentMarker
22
get => _IEnumerableComponentMarker ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>>)Options.GetTypeInfo(typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>> Create_IEnumerableComponentMarker(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>> jsonTypeInfo))
29
var info = new global::System.Text.Json.Serialization.Metadata.JsonCollectionInfoValues<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>>
37
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateIEnumerableInfo<global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>, global::Microsoft.AspNetCore.Components.
ComponentMarker
>(options, info);
47
private void IEnumerableComponentMarkerSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>? value)
57
foreach (global::Microsoft.AspNetCore.Components.
ComponentMarker
element in value)
_generated\53\ServerComponentJsonContext.GetJsonTypeInfo.g.cs (2)
26
if (type == typeof(global::Microsoft.AspNetCore.Components.
ComponentMarker
))
50
if (type == typeof(global::System.Collections.Generic.IEnumerable<global::Microsoft.AspNetCore.Components.
ComponentMarker
>))
DependencyInjection\WebAssemblyComponentSerializer.cs (1)
11
public static void SerializeInvocation(ref
ComponentMarker
marker, Type type, ParameterView parameters)
Rendering\EndpointHtmlRenderer.Streaming.cs (6)
335
var
marker = boundary.ToMarker(_httpContext, sequenceAndKey.Sequence, sequenceAndKey.Key);
338
if (!_httpContext.Response.HasStarted && marker.Type is
ComponentMarker
.ServerMarkerType or
ComponentMarker
.AutoMarkerType)
343
if (marker.Type is
ComponentMarker
.WebAssemblyMarkerType or
ComponentMarker
.AutoMarkerType
344
or
ComponentMarker
.ServerMarkerType)
Rendering\SSRRenderModeBoundary.cs (8)
201
public
ComponentMarker
ToMarker(HttpContext httpContext, int sequence, object? componentKey)
216
var
marker = RenderMode switch
218
InteractiveServerRenderMode server =>
ComponentMarker
.Create(
ComponentMarker
.ServerMarkerType, server.Prerender, _markerKey),
219
InteractiveWebAssemblyRenderMode webAssembly =>
ComponentMarker
.Create(
ComponentMarker
.WebAssemblyMarkerType, webAssembly.Prerender, _markerKey),
220
InteractiveAutoRenderMode auto =>
ComponentMarker
.Create(
ComponentMarker
.AutoMarkerType, auto.Prerender, _markerKey),
src\aspnetcore\src\Shared\Components\ComponentMarker.cs (1)
65
public static
ComponentMarker
Create(string type, bool prerendered, ComponentMarkerKey? key)
src\aspnetcore\src\Shared\Components\ServerComponentSerializationSettings.cs (2)
52
[JsonSerializable(typeof(
ComponentMarker
))]
53
[JsonSerializable(typeof(IEnumerable<
ComponentMarker
>))]
src\aspnetcore\src\Shared\Components\ServerComponentSerializer.cs (1)
20
ref
ComponentMarker
marker,