AzureCosmosDbExpireLicenseCompany Method

Expire the company's license

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task ExpireLicenseCompany(
	CompanyDto company,
	UserSessionData licenseExpiredBy,
	CancellationToken cancellationToken = default
)

Parameters

company  CompanyDto
Affected company
licenseExpiredBy  UserSessionData
User expires the license
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Task completion

Implements

IAzureCosmosDbExpireLicenseCompany(CompanyDto, UserSessionData, CancellationToken)

Exceptions

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

See Also