Table of Contents

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

ICollection<string>

AllowedDeviceTypes

Set of device types supported by the current license.

public static ISet<DeviceType> AllowedDeviceTypes { get; }

Property Value

ISet<DeviceType>

Expiry

Expiry date for the current license

public static DateTime Expiry { get; }

Property Value

DateTime

Features

Set of features enabled by the current license.

public static ISet<LicenseFeature> Features { get; }

Property Value

ISet<LicenseFeature>

LibraryVersion

Current version of the Nix Universal SDK.

public static string LibraryVersion { get; }

Property Value

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).

public static LicenseManagerState State { get; }

Property Value

LicenseManagerState

Uuid

Vendor identifier for the current license.

public static string Uuid { get; }

Property Value

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.

public static LicenseManagerState Activate(string options, string signature)

Parameters

options string

License options

signature string

License 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

bool

IsFeatureEnabled(LicenseFeature?)

Helper to check if a particular LicenseFeature is enabled by the current license.

public static bool IsFeatureEnabled(LicenseFeature? feature)

Parameters

feature LicenseFeature?

Returns

bool