Table of Contents

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

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<int>

How many of their notifications stand unread.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller acts for no user, or its grant omits NotificationsRead.