IAzureCosmosDbLockCompany Method

Locks an entire company, its AccountDto's, EnvironmentDto's, and the CompanyDto itself, etc.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task LockCompany(
	CompanyDto company,
	UserSessionData lockedBy,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Company to lock
lockedBy  UserSessionData
User locking the items
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Exceptions

UnauthorizedAccessExceptionThrown if the user lockedBy did not have the correct permissions
ArgumentNullExceptionThrown if company or lockedBy was

See Also