IAzureCosmosDbDeleteDashboard Method

Deletes DashboardDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
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