Class Licenser
Implements
Inherited Members
Namespace: LemonEdge.API.Client.CommonUI
Assembly: LemonEdge.API.dll
Syntax
public class Licenser : ILicenser
Constructors
Licenser(IConnector)
Declaration
public Licenser(IConnector connector)
Parameters
Type | Name | Description |
---|---|---|
IConnector | connector |
Methods
IsLicensed()
Returns if the current logged in user has a valid license associated with this account
Declaration
public Task<LicenseResult> IsLicensed()
Returns
Type | Description |
---|---|
Task<LicenseResult> |
ResetLicense()
Resets the cached flag indicating if this license is valid, forcing a new check next time IsLicensed() is called
Declaration
public void ResetLicense()
VerifyLicense(ILicense, string)
Returns true if the current license for this account is valid
Declaration
public Task<LicenseResult> VerifyLicense(ILicense licenseInfo, string license)
Parameters
Type | Name | Description |
---|---|---|
ILicense | licenseInfo | The current license information |
string | license | The current license against the account to use |
Returns
Type | Description |
---|---|
Task<LicenseResult> | True if the current license for this account is valid |