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