Method MarkAllReadAsync
- Namespace
- MailFathom.Application.Notifications
- Assembly
- MailFathom.Application.dll
MarkAllReadAsync(UserId, CancellationToken)
Marks every one of a user's unread notifications read.
Task<int> MarkAllReadAsync(UserId user, CancellationToken cancellationToken)
Parameters
userUserIdThe user whose notifications are marked.
cancellationTokenCancellationTokenCancels the write.
Returns
Remarks
It is unbounded on purpose, unlike the retention pass beside it: what it writes is one user's own unread rows, which the deduplication rule already holds to one per standing condition, and a bound would leave a person pressing the control repeatedly to reach an empty centre.