Interface INotificationHandler<T>
- Namespace
- Arc4u.Dispatcher.Notification
- Assembly
- Arc4u.Dispatcher.dll
Will be used to implement a notification.
public interface INotificationHandler<T>
Type Parameters
TThe type of the object notified.
Methods
HandleAsync(T, CancellationToken)
Handles the notification.
Task HandleAsync(T entity, CancellationToken cancellationToken)
Parameters
entityTThe notified object.
cancellationTokenCancellationTokenA token to cancel the operation.
Returns
- Task
A task that completes when the notification is handled.