Search Results for

    Show / Hide Table of Contents

    Class Licenser

    Inheritance
    object
    Licenser
    Implements
    ILicenser
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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

    Implements

    ILicenser

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.