Interface INotificationHandler<TNotification>
- Namespace
- Caesar
- Assembly
- Caesar.Abstractions.dll
Handles a notification. Multiple handlers may exist for the same notification type.
public interface INotificationHandler<in TNotification> where TNotification : INotification
Type Parameters
TNotificationThe notification type.
Methods
Handle(TNotification, CancellationToken)
Handles the notification.
Task Handle(TNotification notification, CancellationToken cancellationToken)
Parameters
notificationTNotificationThe notification instance.
cancellationTokenCancellationTokenCancellation token.