Method RecordAsync
- Namespace
- MailFathom.Application.Notifications
- Assembly
- MailFathom.Application.dll
RecordAsync(Notification, CancellationToken)
Records one notification unless the condition it names is already standing unread.
Task<bool> RecordAsync(Notification notification, CancellationToken cancellationToken)
Parameters
notificationNotificationThe notification to keep.
cancellationTokenCancellationTokenCancels the write.
Returns
- Task<bool>
true when the notification was kept, and false when an unread one already names the same condition.
Remarks
The comparison is against the user's unread notifications alone. A condition the person has already read is free to be said again, which is what keeps a credential that is refused, repaired, and refused again from being suppressed forever by the first statement about it.
Exceptions
- ArgumentNullException
Thrown when
notificationis null.