Class EventListener<TEvent>
Represents a generic event listener.
public abstract class EventListener<TEvent> : IEventListener<TEvent>, IEventListener
Type Parameters
TEventEvent type.
- Inheritance
-
EventListener<TEvent>
- Implements
-
IEventListener<TEvent>
- Derived
- Inherited Members
Fields
Empty
Represents an event listener that does nothing.
public static readonly IEventListener<TEvent> Empty
Field Value
- IEventListener<TEvent>
Methods
OnDispose(DisposalSource)
Handler invoked during owner's disposal.
public abstract void OnDispose(DisposalSource source)
Parameters
sourceDisposalSourceDisposalSource that caused the invocation.
React(TEvent)
Handler invoked during reaction to an event.
public abstract void React(TEvent @event)
Parameters
eventTEventPublished event.