15 references to NamedEventChangeType
Microsoft.AspNetCore.Components (4)
Rendering\RenderBatchBuilder.cs (2)
88NamedEventChanges.Append(new NamedEventChange(NamedEventChangeType.Added, componentId, frameIndex, frame.NamedEventType, frame.NamedEventAssignedName)); 94NamedEventChanges.Append(new NamedEventChange(NamedEventChangeType.Removed, componentId, frameIndex, frame.NamedEventType, frame.NamedEventAssignedName));
RenderTree\NamedEventChange.cs (2)
18public readonly struct NamedEventChange(NamedEventChangeType changeType, int componentId, int frameIndex, string eventType, string assignedName) 23public readonly NamedEventChangeType ChangeType { get; } = changeType;
Microsoft.AspNetCore.Components.Endpoints (2)
Rendering\EndpointHtmlRenderer.EventDispatch.cs (2)
93if (change.ChangeType == NamedEventChangeType.Removed 117if (change.ChangeType == NamedEventChangeType.Added
Microsoft.AspNetCore.Components.Tests (9)
RenderTreeDiffBuilderTest.cs (9)
2246entry => AssertNamedEventChange(entry, NamedEventChangeType.Added, 123, 2, "someevent1", "added to existing element"), 2247entry => AssertNamedEventChange(entry, NamedEventChangeType.Added, 123, 4, "someevent2", "added with new element")); 2272entry => AssertNamedEventChange(entry, NamedEventChangeType.Removed, 123, 2, "someevent1", "removing from retained element"), 2273entry => AssertNamedEventChange(entry, NamedEventChangeType.Removed, 123, 4, "someevent2", "removed because element was removed")); 2300entry => AssertNamedEventChange(entry, NamedEventChangeType.Removed, 123, 1, "eventname", "assigned name"), 2301entry => AssertNamedEventChange(entry, NamedEventChangeType.Added, 123, 2, "eventname", "assigned name")); 2323entry => AssertNamedEventChange(entry, NamedEventChangeType.Removed, 123, 1, "eventname1", "original name"), 2324entry => AssertNamedEventChange(entry, NamedEventChangeType.Added, 123, 1, "eventname1", "changed name")); 2559NamedEventChangeType type,