IAzureCosmosDbDeleteDashboard Method

Deletes DashboardDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task DeleteDashboard(
	DashboardDto dashboard,
	UserSessionData deletedBy,
	bool forceDelete,
	CancellationToken cancellationToken = default
)

Parameters

dashboard  DashboardDto
Dashboard to delete
deletedBy  UserSessionData
User deleting the item
forceDelete  Boolean
True if delete permanently
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 dashboard or deletedBy was

See Also