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.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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