9 implementations of IHandleEvent
Microsoft.AspNetCore.Components (1)
ComponentBase.cs (1)
22
public abstract class ComponentBase : IComponent,
IHandleEvent
, IHandleAfterRender
Microsoft.AspNetCore.Components.Tests (8)
EventCallbackFactoryBinderExtensionsTest.cs (1)
652
private class EventCountingComponent : IComponent,
IHandleEvent
EventCallbackFactoryTest.cs (1)
614
private class EventComponent : IComponent,
IHandleEvent
EventCallbackTest.cs (1)
418
private class EventCountingComponent : IComponent,
IHandleEvent
RendererTest.cs (5)
5274
private class EventComponent : AutoRenderComponent, IComponent,
IHandleEvent
5414
private class RendersSelfAfterEventComponent : IComponent,
IHandleEvent
5472
private class BindPlusConditionalAttributeComponent : AutoRenderComponent,
IHandleEvent
5610
private class OuterEventComponent : IComponent,
IHandleEvent
5999
private class ErrorThrowingComponent : AutoRenderComponent,
IHandleEvent
29 references to IHandleEvent
Microsoft.AspNetCore.Components (11)
ComponentBase.cs (1)
349
Task
IHandleEvent
.HandleEventAsync(EventCallbackWorkItem callback, object? arg)
EventCallback.cs (2)
24
internal readonly
IHandleEvent
? Receiver;
31
public EventCallback(
IHandleEvent
? receiver, MulticastDelegate? @delegate)
EventCallbackFactory.cs (4)
198
return new EventCallback(callback?.Target as
IHandleEvent
?? receiver as
IHandleEvent
, callback);
203
return new EventCallback<TValue>(callback?.Target as
IHandleEvent
?? receiver as
IHandleEvent
, callback);
EventCallbackOfT.cs (3)
19
internal readonly
IHandleEvent
? Receiver;
26
public EventCallback(
IHandleEvent
? receiver, MulticastDelegate? @delegate)
67
return new EventCallback(Receiver ?? Delegate?.Target as
IHandleEvent
, Delegate);
RenderTree\Renderer.cs (1)
638
_eventBindings.Add(id, (renderedByComponentId, new EventCallback(@delegate.Target as
IHandleEvent
, @delegate)));
Microsoft.AspNetCore.Components.Tests (18)
Rendering\RenderTreeBuilderTest.cs (18)
1214
var
receiver = Mock.Of<
IHandleEvent
>();
1234
var
receiver = Mock.Of<
IHandleEvent
>();
1254
var
receiver = Mock.Of<
IHandleEvent
>();
1311
var
receiver = Mock.Of<
IHandleEvent
>();
1331
var
receiver = Mock.Of<
IHandleEvent
>();
1351
var
receiver = Mock.Of<
IHandleEvent
>();
1579
var
receiver = Mock.Of<
IHandleEvent
>();
1599
var
receiver = Mock.Of<
IHandleEvent
>();
1656
var
receiver = Mock.Of<
IHandleEvent
>();