9 instantiations of ComponentMarkerKey
Microsoft.AspNetCore.Components.Server (1)
CircuitPersistenceManagerSerializerContext.ComponentMarkerKey.g.cs (1)
33ObjectCreator = () => new global::Microsoft.AspNetCore.Components.ComponentMarkerKey(),
Microsoft.AspNetCore.Components.Server.Tests (8)
Circuits\CircuitHostTest.cs (1)
872var key = new ComponentMarkerKey(locationHash, componentKey);
Circuits\CircuitPersistenceManagerTest.cs (4)
73Key: new ComponentMarkerKey("1", typeof(RootComponent).FullName!), 126Key: new ComponentMarkerKey("1", typeof(RootComponent).FullName!), 137Key: new ComponentMarkerKey("2", typeof(SecondRootComponent).FullName!), 536var key = new ComponentMarkerKey((i + 1).ToString(CultureInfo.InvariantCulture), rootComponentType.FullName!);
Circuits\RemoteRendererTest.cs (2)
539await webRootComponentManager.UpdateRootComponentAsync(0, typeof(TestComponent), new("1", null), WebRootComponentParameters.Empty); 675var componentMarkerKey = new ComponentMarkerKey()
Circuits\ServerComponentDeserializerTest.cs (1)
449var key = new ComponentMarkerKey(type.FullName, null);
70 references to ComponentMarkerKey
Microsoft.AspNetCore.Components.Server (58)
CircuitPersistenceManagerSerializerContext.ComponentMarker.g.cs (3)
93var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?> 108AttributeProviderFactory = 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), 111properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?>(options, info2);
CircuitPersistenceManagerSerializerContext.ComponentMarkerKey.g.cs (21)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey>? _ComponentMarkerKey; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey> ComponentMarkerKey 24get => _ComponentMarkerKey ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey> Create_ComponentMarkerKey(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.ComponentMarkerKey>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Components.ComponentMarkerKey> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey), 60Getter = static obj => ((global::Microsoft.AspNetCore.Components.ComponentMarkerKey)obj).LocationHash, 61Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.ComponentMarkerKey>(obj).LocationHash = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("LocationHash", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 80DeclaringType = typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey), 82Getter = static obj => ((global::Microsoft.AspNetCore.Components.ComponentMarkerKey)obj).FormattedComponentKey, 83Setter = static (obj, value) => global::System.Runtime.CompilerServices.Unsafe.Unbox<global::Microsoft.AspNetCore.Components.ComponentMarkerKey>(obj).FormattedComponentKey = value!, 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey).GetProperty("FormattedComponentKey", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100private void ComponentMarkerKeySerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Components.ComponentMarkerKey value) 104writer.WriteString(PropName_LocationHash, ((global::Microsoft.AspNetCore.Components.ComponentMarkerKey)value).LocationHash); 105writer.WriteString(PropName_FormattedComponentKey, ((global::Microsoft.AspNetCore.Components.ComponentMarkerKey)value).FormattedComponentKey);
CircuitPersistenceManagerSerializerContext.GetJsonTypeInfo.g.cs (2)
28if (type == typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey)) 32if (type == typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey?))
CircuitPersistenceManagerSerializerContext.NullableComponentMarkerKey.g.cs (9)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?>? _NullableComponentMarkerKey; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?> NullableComponentMarkerKey 24get => _NullableComponentMarkerKey ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Components.ComponentMarkerKey?)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?> Create_NullableComponentMarkerKey(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?> jsonTypeInfo)) 31global::System.Text.Json.Serialization.JsonConverter converter = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetNullableConverter<global::Microsoft.AspNetCore.Components.ComponentMarkerKey>(options); 32jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::Microsoft.AspNetCore.Components.ComponentMarkerKey?>(options, converter);
Circuits\RemoteComponentState.cs (1)
24var markerKey = ((RemoteRenderer)Renderer).GetMarkerKey(this);
Circuits\RemoteRenderer.cs (1)
322internal ComponentMarkerKey GetMarkerKey(RemoteComponentState remoteComponentState)
src\Components\Shared\src\WebRootComponentManager.cs (9)
39ComponentMarkerKey? key, 63ComponentMarkerKey? newKey, 88internal IEnumerable<(int id, ComponentMarkerKey key, (Type componentType, ParameterView parameters))> GetRootComponents() 97internal ComponentMarkerKey GetRootComponentKey(int componentId) 121private readonly ComponentMarkerKey _key; 130ComponentMarkerKey? key, 147ComponentMarkerKey key, 160out ComponentMarkerKey key, 173ComponentMarkerKey? newKey,
src\Shared\Components\ComponentMarker.cs (9)
30public ComponentMarkerKey? Key { get; set; } 65public static ComponentMarker Create(string type, bool prerendered, ComponentMarkerKey? key) 117internal struct ComponentMarkerKey : IEquatable<ComponentMarkerKey> 135public static bool operator ==(ComponentMarkerKey left, ComponentMarkerKey right) 138public static bool operator !=(ComponentMarkerKey left, ComponentMarkerKey right) 141public readonly bool Equals(ComponentMarkerKey other) 146=> obj is ComponentMarkerKey other && Equals(other);
src\Shared\Components\ServerComponent.cs (2)
15ComponentMarkerKey? key, 28public ComponentMarkerKey? Key { get; set; }
src\Shared\Components\ServerComponentSerializer.cs (1)
35ComponentMarkerKey? key,
Microsoft.AspNetCore.Components.Server.Tests (12)
Circuits\CircuitHostTest.cs (1)
872var key = new ComponentMarkerKey(locationHash, componentKey);
Circuits\CircuitPersistenceManagerTest.cs (2)
372(int Id, ComponentMarkerKey Key, (Type ComponentType, Dictionary<string, object> Parameters))[] expected, byte[] rootComponents) 536var key = new ComponentMarkerKey((i + 1).ToString(CultureInfo.InvariantCulture), rootComponentType.FullName!);
Circuits\RemoteRendererTest.cs (8)
513var key = await AddWebRootComponentAsync(renderer, 0); 553var key = await AddWebRootComponentAsync(renderer, 0, "mykey"); 573var key = await AddWebRootComponentAsync(renderer, 0); 592var key = await AddWebRootComponentAsync(renderer, 0); 612var key = await AddWebRootComponentAsync(renderer, 0); 628var key = await AddWebRootComponentAsync(renderer, 0); 671private static Task<ComponentMarkerKey> AddWebRootComponentAsync(RemoteRenderer renderer, int ssrComponentId, string componentKey = null) 675var componentMarkerKey = new ComponentMarkerKey()
Circuits\ServerComponentDeserializerTest.cs (1)
449var key = new ComponentMarkerKey(type.FullName, null);