Class License
License of this module.
public static class License
- Inheritance
-
License
- Inherited Members
Fields
CoreDll
Core dll path.
public const string CoreDll = "core.dll"
Field Value
Methods
AbortIfNotLoggedIn(AuthFeature)
Aborts the application if a specific feature is not logged in.
public static void AbortIfNotLoggedIn(AuthFeature feature)
Parameters
featureAuthFeatureThe feature to check.
GetHiApiRefusalDetail(int?, int?)
Internal Use Only. The lines after “HiApi is not licensed.” that say why: the Sentinel status of HiApi and of HiApiSubstitute, and for the statuses a customer can act on alone, what to do. Without them every cause prints the same line, and an old License Manager (HASP_OLD_LM) cannot be told from a missing key or an expired license. The remedy follows HiApi's status, except where the key lacks HiApi (HASP_FEATURE_NOT_FOUND) and HiApiSubstitute, which takes its place on such a key, failed for another reason.
public static string GetHiApiRefusalDetail(int? hiApiStatus, int? substituteStatus)
Parameters
hiApiStatusint?Status of the HiApi login; null when unknown.
substituteStatusint?Status of the HiApiSubstitute login; null when unknown.
Returns
- string
The detail lines, or null when neither status is known.
GetLastLoginStatus(AuthFeature)
Internal Use Only.
The Sentinel status the last Login(AuthFeature) of feature got:
0 when it succeeded, otherwise the HASP status code. Null before the feature's first
login in this process, and when this core.dll predates the query.
public static int? GetLastLoginStatus(AuthFeature feature)
Parameters
featureAuthFeatureThe feature whose last login is asked about.
Returns
- int?
The HASP status code, or null when there is none to read.
GetProducerInfo()
Get Producer Info.
public static string GetProducerInfo()
Returns
- string
Producer Info.
IsFeatureAuth(AuthFeature)
Checks if a specific feature is authorized.
public static bool IsFeatureAuth(AuthFeature authFeature)
Parameters
authFeatureAuthFeatureThe feature to check.
Returns
- bool
True if the feature is authorized; otherwise, false.
IsLoggedIn(AuthFeature)
Checks if a specific feature is logged in.
public static bool IsLoggedIn(AuthFeature feature)
Parameters
featureAuthFeatureThe feature to check.
Returns
- bool
True if the feature is logged in; otherwise, false.
LogInAll()
Logs in to the features the application checks and keeps the logins for the life of the process: IsLoggedIn(AuthFeature) and the native cache checks read them, and for a feature checked by a fresh query the kept login holds this station's seat on a network key.
public static List<AuthFeature> LogInAll()
Returns
- List<AuthFeature>
An enumeration of successfully logged in features.
LogOut(AuthFeature)
Logs out from a specific feature.
public static void LogOut(AuthFeature feature)
Parameters
featureAuthFeatureThe feature to log out from.
LogOutAll()
Logs out from all features.
public static void LogOutAll()
Login(AuthFeature)
Logs in to a specific feature.
public static bool Login(AuthFeature feature)
Parameters
featureAuthFeatureThe feature to log in to.
Returns
- bool
True if login was successful; otherwise, false.
SafelyEndLicenseRoutineCheck()
Safely ends the license routine check.
public static void SafelyEndLicenseRoutineCheck()
Events
AbortMessageAction
Event handler for license abort events.
public static event Action<string> AbortMessageAction