Class LicenseManager
- Namespace
- NixUniversalSDK
- Assembly
- NixUniversalSDK.dll
Class used to manage the license for the Nix Universal SDK. Access to a single shared instance is provided via static functions.
public class LicenseManager
- Inheritance
-
LicenseManager
- Inherited Members
Properties
Allocations
List of Nix device allocation codes associated with the current license.
public static ICollection<string> Allocations { get; }
Property Value
AllowedDeviceTypes
Set of device types supported by the current license.
public static ISet<DeviceType> AllowedDeviceTypes { get; }
Property Value
Expiry
Expiry date for the current license
public static DateTime Expiry { get; }
Property Value
Features
Set of features enabled by the current license.
public static ISet<LicenseFeature> Features { get; }
Property Value
LibraryVersion
Current version of the Nix Universal SDK.
public static string LibraryVersion { get; }
Property Value
State
Describes the current state of the LicenseManager. Nix Universal SDK functions are available only if license is active (i.e. - the state is Active).
public static LicenseManagerState State { get; }
Property Value
Uuid
Vendor identifier for the current license.
public static string Uuid { get; }
Property Value
Methods
Activate(string, string)
Activates a license. The options and signature parameters must exactly match the values provided in the SDK license. Calling this function invalidates any currently active license.
public static LicenseManagerState Activate(string options, string signature)
Parameters
options
stringLicense options
signature
stringLicense signature, used to validate the license options.
Returns
- LicenseManagerState
License manager state after activation
Deactivate()
Deactivates the current license.
public static void Deactivate()
IsDeviceTypeSupported(DeviceType)
Helper to check if a particular DeviceType is supported by the current license.
public static bool IsDeviceTypeSupported(DeviceType type)
Parameters
type
DeviceType
Returns
IsFeatureEnabled(LicenseFeature?)
Helper to check if a particular LicenseFeature is enabled by the current license.
public static bool IsFeatureEnabled(LicenseFeature? feature)
Parameters
feature
LicenseFeature?