IAzureCosmosDbUpdateOrCreateDashboard Method

Update or Creates a personal Dashboard in the database

Definition

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

Parameters

dashboard  DashboardDto
Original Dashboard
createdBy  UserSessionData
User creating the dashboard
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Cosmos DB Object-creation Task

Exceptions

UnauthorizedAccessExceptionThrown if the user createdBy did not have the correct permissions
ArgumentNullExceptionThrown if dashboard or createdBy are
ResourceInvalidStateExceptionThrown if dashboard is in an invalid state.

See Also