IAzureCosmosDbDeleteDashboard Method

Deletes DashboardDto from the database.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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