AzureCosmosDbUnlockCompany Method

Unlocks 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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task UnlockCompany(
	CompanyDto company,
	UserSessionData unlockedBy,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Company to unlock
unlockedBy  UserSessionData
User unlocking the items
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Implements

IAzureCosmosDbUnlockCompany(CompanyDto, UserSessionData, CancellationToken)

Exceptions

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

See Also