Table of Contents

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

user UserId

The user whose notifications are marked.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<int>

How many notifications the request changed, which is zero where none stood unread.

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.