IAzureCosmosDbExpireLicenseCompany Method

Expire the company's license

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
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

Exceptions

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

See Also