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