ILicenseService ValidateTenantLicense Method CelloSaaS API Documentation
Validates the tenant subscription package. Returns "true" If the validatity end date is greater than now (current datetime) else "false"

Namespace: CelloSaaS.ServiceContracts.LicenseManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

bool ValidateTenantLicense(
	string tenantId
)

Parameters

tenantId
Type: System String
Tenant Identifier(Mandatory)

Return Value

Type: Boolean
The True/False value
Exceptions

ExceptionCondition
System ArgumentNullExceptionThrows ArgumentNullException if any mandatory argument is null or empty
CelloSaaS.ServiceContracts.LicenseManagement LicenseExceptionThrows LicenseException if any errors occurs in module license validate
Examples

public void ValidateTenantLicense()
{
    string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    ILicenseService licenseService = ServiceLocator.Resolve<ILicenseService>();
    bool isValid = licenseService.ValidateTenantLicense(tenantId);
}
See Also