IAzureCosmosDbNotificationSetRead Method

Sets Read = and saves it to the database. Do not set Read to manually, as this will cause an InvalidOperationException to be thrown.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
Task NotificationSetRead(
	NotificationDto notification,
	AccountDto user,
	CancellationToken cancellationToken = default
)

Parameters

notification  NotificationDto
Notification that has been read
user  AccountDto
User to get the notifications from
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Update Task

Exceptions

InvalidOperationExceptionThrown if the message was already read.

See Also