Method CountUnreadAsync
- Namespace
- MailFathom.Application.Notifications
- Assembly
- MailFathom.Application.dll
CountUnreadAsync(CancellationToken)
Counts what the signed-in person has not read.
public Task<int> CountUnreadAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller acts for no user, or its grant omits NotificationsRead.