Method RecordAndAnnounceAsync
- Namespace
- MailFathom.Application.Notifications
- Assembly
- MailFathom.Application.dll
RecordAndAnnounceAsync(Notification, CancellationToken)
Records one notification and announces it where it was kept.
public Task<bool> RecordAndAnnounceAsync(Notification notification, CancellationToken cancellationToken)
Parameters
notificationNotificationThe notification to raise.
cancellationTokenCancellationTokenCancels the raise.
Returns
- Task<bool>
true when the notification was kept, and false when an unread one already names the same condition.
Exceptions
- ArgumentNullException
Thrown when
notificationis null.