Table of Contents

Class LicenseManager

Namespace
Balsam.Licensing
Assembly
Balsam.Backtester.dll

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

IEnumerable<Entitlement>

ExpirationDate

Gets the expiration date of the license, if any.

public static DateTime? ExpirationDate { get; }

Property Value

DateTime?

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

string

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

string

LicensePath

Gets the folder where the license information is stored.

public static string LicensePath { get; }

Property Value

string

MachineFingerprint

Gets the hardware fingerprint of this machine.

public static string MachineFingerprint { get; }

Property Value

string

Methods

ActivateAsync(string)

Activates a new license using the specified license key.

public static Task ActivateAsync(string licenseKey)

Parameters

licenseKey string

Returns

Task

Exceptions

LicenseException

CheckConnectivityAsync()

Pings the licensing server.

public static Task<bool> CheckConnectivityAsync()

Returns

Task<bool>

True if the ping request is successful.

DeactivateAsync()

Deactivates the machine associated with this license. Not to be called by user code.

public static Task DeactivateAsync()

Returns

Task

Exceptions

LicenseException

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 Entitlement
throwIfNotEntitled bool

Returns

bool

Exceptions

LicenseException

ValidateAsync(bool)

Validates an existing license.

public static Task ValidateAsync(bool forceCheckin = false)

Parameters

forceCheckin bool

Returns

Task

Exceptions

LicenseException

Events

Message

Raises a message event

public static event EventHandler<MessageEventArgs> Message

Event Type

EventHandler<MessageEventArgs>