Class LicenseManager
The license manager.
Inherited Members
Namespace: ComponentSpace.SAML2.Licensing
Assembly: ComponentSpace.Saml2.dll
Syntax
public class LicenseManager
Properties
CustomerID
Gets the customer ID.
Declaration
public string CustomerID { get; }
Property Value
| Type | Description |
|---|---|
| string | The customer ID. |
Expiry
Gets the expiry date.
Declaration
public DateTime Expiry { get; }
Property Value
| Type | Description |
|---|---|
| DateTime | The expiry date. |
IssuedAt
Gets the issued at date.
Declaration
public DateTime IssuedAt { get; }
Property Value
| Type | Description |
|---|---|
| DateTime | The issued at date. |
LicenseNumber
Gets the license number.
Declaration
public string LicenseNumber { get; }
Property Value
| Type | Description |
|---|---|
| string | The license number. |
ProductID
Gets the product ID.
Declaration
public string ProductID { get; }
Property Value
| Type | Description |
|---|---|
| string | The product ID. |
Methods
CheckLicense()
Checks for a valid license.
Declaration
public void CheckLicense()
Exceptions
| Type | Condition |
|---|---|
| InvalidLicenseException | Thrown when the license check fails. |
HasExpired()
Indicates whether the license has expired.
Declaration
public bool HasExpired()
Returns
| Type | Description |
|---|---|
| bool |
|
IsLicenseProvided()
Indicates whether a license is provided.
Declaration
public bool IsLicenseProvided()
Returns
| Type | Description |
|---|---|
| bool |
|
IsLicensed()
Indicates whether the product is licensed.
Declaration
public bool IsLicensed()
Returns
| Type | Description |
|---|---|
| bool |
|
LoadLicense(LicenseOptions)
Loads the license.
Declaration
public void LoadLicense(LicenseOptions licenseOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| LicenseOptions | licenseOptions | The license options. |
Exceptions
| Type | Condition |
|---|---|
| InvalidLicenseException | Thrown when the license fails to load. |