Class LicenseManager
Class used to manage the license for the Nix Universal SDK. Access to a single shared instance is provided via static functions.
Inherited Members
Namespace: NixUniversalSDK
Assembly: NixUniversalSDK.dll
Syntax
public class LicenseManager
Properties
Allocations
List of Nix device allocation codes associated with the current license.
Declaration
public static ICollection<string> Allocations { get; }
Property Value
| Type | Description |
|---|---|
| ICollection<string> |
AllowedDeviceTypes
Set of device types supported by the current license.
Declaration
public static ISet<DeviceType> AllowedDeviceTypes { get; }
Property Value
| Type | Description |
|---|---|
| ISet<DeviceType> |
Expiry
Expiry date for the current license
Declaration
public static DateTime Expiry { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Features
Set of features enabled by the current license.
Declaration
public static ISet<LicenseFeature> Features { get; }
Property Value
| Type | Description |
|---|---|
| ISet<LicenseFeature> |
LibraryVersion
Current version of the Nix Universal SDK.
Declaration
public static string LibraryVersion { get; }
Property Value
| Type | Description |
|---|---|
| string |
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).
Declaration
public static LicenseManagerState State { get; }
Property Value
| Type | Description |
|---|---|
| LicenseManagerState |
Uuid
Vendor identifier for the current license.
Declaration
public static string Uuid { get; }
Property Value
| Type | Description |
|---|---|
| string |
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.
Declaration
public static LicenseManagerState Activate(string options, string signature)
Parameters
| Type | Name | Description |
|---|---|---|
| string | options | License options |
| string | signature | License signature, used to validate the license options. |
Returns
| Type | Description |
|---|---|
| LicenseManagerState | License manager state after activation |
Deactivate()
Deactivates the current license.
Declaration
public static void Deactivate()
IsDeviceTypeSupported(DeviceType)
Helper to check if a particular DeviceType is supported by the current license.
Declaration
public static bool IsDeviceTypeSupported(DeviceType type)
Parameters
| Type | Name | Description |
|---|---|---|
| DeviceType | type |
Returns
| Type | Description |
|---|---|
| bool |
IsFeatureEnabled(LicenseFeature?)
Helper to check if a particular LicenseFeature is enabled by the current license.
Declaration
public static bool IsFeatureEnabled(LicenseFeature? feature)
Parameters
| Type | Name | Description |
|---|---|---|
| LicenseFeature? | feature |
Returns
| Type | Description |
|---|---|
| bool |