IAzureCosmosDbDeleteAccount Method

Deletes AccountDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task DeleteAccount(
	AccountDto account,
	UserSessionData deletedBy,
	CancellationToken cancellationToken = default
)

Parameters

account  AccountDto
Account 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 account or deletedBy are
ArgumentExceptionThrown if the account doesn't belong to the deletedBy's company, or if deletedBy is account

See Also