Table of Contents

Method SetReadAsync

Namespace
MailFathom.Application.Notifications
Assembly
MailFathom.Application.dll

SetReadAsync(NotificationId, bool, CancellationToken)

Puts one of the signed-in person's notifications into a stated read state.

public Task<NotificationReadOutcome> SetReadAsync(NotificationId notification, bool isRead, CancellationToken cancellationToken)

Parameters

notification NotificationId

The notification to change.

isRead bool

The read state it is to stand in.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<NotificationReadOutcome>

What became of the request.

Exceptions

PrincipalNotAuthorizedException

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