Interface IEventHandler<T>
Implemented by event handles to receive a particular type of application event, defined by T.
public interface IEventHandler<T> where T : EventData
Type Parameters
T
Event data type.
- Extension Methods
Remarks
The implemented event handler merely needs to be added to the dependency injection container. The system will call all the handlers added to that container.
Methods
HandleAsync<S>(S, T)
Handle the incoming event.
Task HandleAsync<S>(S sender, T data)
Parameters
sender
SClass which raised the event.
data
TEvent data.
Returns
Type Parameters
S