LicenseProxy CreateLicenseForLicensePackage Method CelloSaaS API Documentation
This method is used to assign package to tenant.

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

public static void CreateLicenseForLicensePackage(
	TenantLicense tenantLicense
)

Parameters

tenantLicense
Type: CelloSaaS.BusinessEdition.ServiceProxies.LicenseService TenantLicense
Tenant License Details(Mandatory - Tenant Identifier, Package Identifier)
Exceptions

ExceptionCondition
System ArgumentExceptionThrows Argument Exception
System UnauthorizedAccessExceptionThrows UnauthorizedAccessException if user don't have permission for this method
[!:LicenseException]Throws LicenseException if any errors occurs in module license validate
[!:InvalidNumberOfUsers]Throws InvalidNumberOfUsers if users count is not valid.
Examples

public void CreateLicenseForLicensePackage()
{
    TenantLicense tenantLicense = new TenantLicense();
    tenantLicense.TenantId = "B590CD25-3093-DF11-8DEB-001EC9DAB123";
    tenantLicense.PackageId = "A011B120-DD93-DF11-8DEB-001EC9DAB123";
    tenantLicense.NumberOfUsers = "150";
    LicenseProxy.CreateLicenseForLicensePackage(tenantLicense);
}
See Also