Interface ILicenseManager

The interface for LicenseManager.


public abstract interface ILicenseManager

Interface Members

MemberDescription

ActivateOnline

Activates the specific license online.

public LicenseActivationResult ActivateOnline(string serialNumber,
    string company,
    string contact,
    string email,
    string appName,
    string version,
    bool reactivate);

AddLicense

Creates a new license with the specified values, adds it to the collection, and writes it to the license file.

public bool AddLicense(string activationCode,
    string serialNumber,
    LicenseType type,
    int seats,
    DateTime expiry);

public bool AddLicense(string activationCode,
    string serialNumber);

CheckValidLicenses

Determines whether all licenses are valid.

public LicenseValidation CheckValidLicenses();

Dispose

Call Dispose to release resources.

public void Dispose();

EraseLicenseFile

Erases the license file and clears the licenses from the collection.

public void EraseLicenseFile();

ExtendUnactivatedPeriod

Extended the unactivated period.

public bool ExtendUnactivatedPeriod(string extensionCode);

GetLicense

Returns the license for the specified serial number.

public ILicense GetLicense(string serialNumber);

GetLicenseExpiry

Returns the minimum of the expiry dates for all licenses.

public DateTime GetLicenseExpiry();

GetLoggedInUsers

Returns a list of logged in users.

public IList<String> GetLoggedInUsers();

GetNumberOfLicenses

Returns the number of licenses of all types.

public int GetNumberOfLicenses();

public int GetNumberOfLicenses(LicenseType type);

GetOnlineExpiry

Returns the minimum of the expiry dates for all licenses.

public DateTime GetOnlineExpiry();

public DateTime GetOnlineExpiry(string serialNumber);

GetUnactivatedExpiry

Get the expiry date for the unactivated trial version.

public DateTime GetUnactivatedExpiry();

Login

Tries to log in by locking a file for an available license.

public bool Login(IUser user);

LoginCount

Determines how many users have logged in with the specified license type.

public int LoginCount(LicenseType type);

Logout

Logs the user out.

public void Logout(IUser user);

ReactivateLicenses

Attempts to reactivate all licenses online.

public LicenseActivationResult ReactivateLicenses(string company,
    string contact,
    string email,
    string appName,
    string version);

RemoveLicense

Removes the specified license.

public bool RemoveLicense(string serialNumber);

ValidateActivationCode

Validates whether the activation code matches the registration number and serial number.

public bool ValidateActivationCode(string activationCode,
    string serialNumber,
    bool checkMatch);

HaveTerminatingLicense

True if any of the licenses are terminating.

LicenseProblem

Information about any license problem.

Licenses

A read-only collection of the licenses.

RegistrationNumber

The registration number for the system.

Unactivated

True if there are no active licenses.

UnactivatedExpiry

The expiry date for an unactivated version.

Requirements

Namespace: Stonefield.Query.Licensing
Assembly: interfaces.dll