This method is used to get the active tenant subscription license details.
Returns TenantLicense object if the tenant has valid license
else null if the subscription expires
Namespace: CelloSaaS.ServiceContracts.LicenseManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantId
- Type: System String
Tenant Identifier
Return Value
Type: TenantLicenseTenant License Details
Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | Throws ArgumentNullException if any mandatory argument is null or empty |
CelloSaaS.ServiceContracts.LicenseManagement LicenseException | Throws LicenseException if any errors occurs in module license validate |
Examples
public void GetAllLicensePackage() { string tenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; ILicenseService licenseService = ServiceLocator.Resolve<ILicenseService>(); TenantLicense packageDetails = licenseService.GetTenantLicense(tenantId); }
See Also