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+45c8d9adb5970d727cceec44a5ed61aea0016e50
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