IAzureCosmosDbExpireLicenseCompany Method

Expire the company's license

Definition

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