Class LicenseManager
Provides licensing authentication services.
[Obfuscation(Feature = "renaming,stringencryption")]
public static class LicenseManager
- Inheritance
-
LicenseManager
- Inherited Members
Properties
Entitlements
Gets a collection of entitlement codes included with the current license.
public static IEnumerable<Entitlement> Entitlements { get; }
Property Value
ExpirationDate
Gets the expiration date of the license, if any.
public static DateTime? ExpirationDate { get; }
Property Value
License
Gets/sets the license certificate to be used. Normally this will be loaded automatically based on license files found in LicensePath.
public static string License { get; set; }
Property Value
LicenseKey
Gets/sets the license key. Normally this will be loaded automatically from the license key found in the LicensePath directory.
public static string LicenseKey { get; set; }
Property Value
LicensePath
Gets the folder where the license information is stored.
public static string LicensePath { get; }
Property Value
MachineFingerprint
Gets the hardware fingerprint of this machine.
public static string MachineFingerprint { get; }
Property Value
Methods
ActivateAsync(string)
Activates a new license using the specified license key.
public static Task ActivateAsync(string licenseKey)
Parameters
licenseKey
string
Returns
Exceptions
CheckConnectivityAsync()
Pings the licensing server.
public static Task<bool> CheckConnectivityAsync()
Returns
DeactivateAsync()
Deactivates the machine associated with this license. Not to be called by user code.
public static Task DeactivateAsync()
Returns
Exceptions
IsEntitled(Entitlement, bool)
Returns true if the current license is entitled for the specified entitlementCode.
public static bool IsEntitled(Entitlement entitlement, bool throwIfNotEntitled = false)
Parameters
entitlement
EntitlementthrowIfNotEntitled
bool
Returns
Exceptions
ValidateAsync(bool)
Validates an existing license.
public static Task ValidateAsync(bool forceCheckin = false)
Parameters
forceCheckin
bool
Returns
Exceptions
Events
Message
Raises a message event
public static event EventHandler<MessageEventArgs> Message