8 instantiations of ComponentMarkerKey
Microsoft.AspNetCore.Components.Server.Tests (8)
Circuits\CircuitHostTest.cs (1)
783var 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!), 534var key = new ComponentMarkerKey((i + 1).ToString(CultureInfo.InvariantCulture), rootComponentType.FullName!);
Circuits\RemoteRendererTest.cs (2)
537await webRootComponentManager.UpdateRootComponentAsync(0, typeof(TestComponent), new("1", null), WebRootComponentParameters.Empty); 673var componentMarkerKey = new ComponentMarkerKey()
Circuits\ServerComponentDeserializerTest.cs (1)
449var key = new ComponentMarkerKey(type.FullName, null);
35 references to ComponentMarkerKey
Microsoft.AspNetCore.Components.Server (23)
Circuits\RemoteComponentState.cs (1)
27var markerKey = _renderer.GetMarkerKey(this);
Circuits\RemoteRenderer.cs (1)
322internal ComponentMarkerKey GetMarkerKey(RemoteComponentState remoteComponentState)
src\Components\Shared\src\WebRootComponentManager.cs (9)
38ComponentMarkerKey? key, 62ComponentMarkerKey? newKey, 87internal IEnumerable<(int id, ComponentMarkerKey key, (Type componentType, ParameterView parameters))> GetRootComponents() 96internal ComponentMarkerKey GetRootComponentKey(int componentId) 115private readonly ComponentMarkerKey _key; 124ComponentMarkerKey? key, 141ComponentMarkerKey key, 154out ComponentMarkerKey key, 167ComponentMarkerKey? 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)
783var key = new ComponentMarkerKey(locationHash, componentKey);
Circuits\CircuitPersistenceManagerTest.cs (2)
372(int Id, ComponentMarkerKey Key, (Type ComponentType, Dictionary<string, object> Parameters))[] expected, byte[] rootComponents) 534var key = new ComponentMarkerKey((i + 1).ToString(CultureInfo.InvariantCulture), rootComponentType.FullName!);
Circuits\RemoteRendererTest.cs (8)
511var key = await AddWebRootComponentAsync(renderer, 0); 551var key = await AddWebRootComponentAsync(renderer, 0, "mykey"); 571var key = await AddWebRootComponentAsync(renderer, 0); 590var key = await AddWebRootComponentAsync(renderer, 0); 610var key = await AddWebRootComponentAsync(renderer, 0); 626var key = await AddWebRootComponentAsync(renderer, 0); 669private static Task<ComponentMarkerKey> AddWebRootComponentAsync(RemoteRenderer renderer, int ssrComponentId, string componentKey = null) 673var componentMarkerKey = new ComponentMarkerKey()
Circuits\ServerComponentDeserializerTest.cs (1)
449var key = new ComponentMarkerKey(type.FullName, null);