IAzureCosmosDbDeleteAlertRule Method

Deletes AlertRuleDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task DeleteAlertRule(
	AlertRuleDto alertRule,
	UserSessionData deletedBy,
	CancellationToken cancellationToken = default
)

Parameters

alertRule  AlertRuleDto
Alert rule to delete
deletedBy  UserSessionData
User deleting the items
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user deletedBy did not have the correct permissions
ArgumentNullExceptionThrown if alertRule or deletedBy was

See Also