This method is to insert the license for tenant.
Namespace: CelloSaaS.ServiceContracts.LicenseManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantLicense
- Type: CelloSaaS.Model.LicenseManagement TenantLicense
Tenant License Details(Mandatory - Tenant Identifier, Package Identifier)
Return Value
Type: StringThe Tenant LicenseId
Exceptions
Exception | Condition |
---|---|
System ArgumentException | Throws Argument Exception |
System UnauthorizedAccessException | Throws UnauthorizedAccessException if user don't have insert tenant license permission |
CelloSaaS.ServiceContracts.LicenseManagement LicenseException | Throws LicenseException if any errors occurs in module license validate |
Examples
public void InsertTenantLicense() { TenantLicense tenantLicense = new TenantLicense(); tenantLicense.TenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123"; tenantLicense.PackageId = "A8174FD7-808F-4CB1-A3E4-F3013684DEEE"; tenantLicense.NumberOfUsers = 100; ILicenseService licenseService = ServiceLocator.Resolve<ILicenseService>(); string tenantLicenseId = licenseService.InsertTenantLicense(tenantLicense); }
See Also