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
notificationNotificationIdThe notification to change.
isReadboolThe read state it is to stand in.
cancellationTokenCancellationTokenPropagates 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.