Table of Contents

Class SentinelKeyInfo

Namespace
Hi.Licenses
Assembly
HiDisp.dll

Internal Use Only. The Sentinel key behind the main licence, as a login of its own finds it at the moment of Read(): HiApi, else HiApiSubstitute; the key that serves it, the terms the business sets on it – the main licence's end, its seats, and the end of AdvancedPhysics – and the computer whose Sentinel service holds the key. What the licence dialog of the installed HiNC shows for a Sentinel licence.

public sealed class SentinelKeyInfo
Inheritance
SentinelKeyInfo
Inherited Members
Extension Methods

Properties

AdvancedPhysics

True when the key carries AdvancedPhysics.

public bool AdvancedPhysics { get; init; }

Property Value

bool

AdvancedPhysicsExpired

True when the key's AdvancedPhysics has expired.

public bool AdvancedPhysicsExpired { get; init; }

Property Value

bool

AdvancedPhysicsExpiresUtc

When AdvancedPhysics ends: its own end, bounded by the main licence's (a feature without an end behind a dated main licence stops with it); null when neither ends, or when the key does not carry it.

public DateTime? AdvancedPhysicsExpiresUtc { get; init; }

Property Value

DateTime?

AdvancedPhysicsInfoStatus

The Sentinel status of the query for AdvancedPhysics on the key: 50 when the key does not carry it; -1 when it was not asked.

public int AdvancedPhysicsInfoStatus { get; init; }

Property Value

int

AdvancedPhysicsLicenseType

The type of AdvancedPhysics' own terms; null when the key does not carry it.

public string AdvancedPhysicsLicenseType { get; init; }

Property Value

string

DecisiveStatus

The status that says why no main licence logged in: HiApi's, unless it says nothing (31, a key without HiApi, as a key that carries the substitute is) and the substitute's says more. Null when a main licence logged in.

public int? DecisiveStatus { get; }

Property Value

int?

ExecutionsLeft

The executions an executions main licence has left; null for other licences.

public int? ExecutionsLeft { get; init; }

Property Value

int?

ExpiresUtc

When the main licence ends; null for a licence without an end, or one whose end is not known.

public DateTime? ExpiresUtc { get; init; }

Property Value

DateTime?

Feature

The main licence that logged in: HiApi or HiApiSubstitute; null when neither did.

public AuthFeature? Feature { get; init; }

Property Value

AuthFeature?

HiApiStatus

The Sentinel status of the HiApi login: 0 when it was granted.

public int HiApiStatus { get; init; }

Property Value

int

IsLocal

True when the key is held by this computer: the Sentinel service answering on a loopback address.

public bool IsLocal { get; }

Property Value

bool

KeyId

The key's id; null when it is not known.

public string KeyId { get; init; }

Property Value

string

KeyInfoStatus

The Sentinel status of the query for the key and its terms; -1 when it was not asked (no login).

public int KeyInfoStatus { get; init; }

Property Value

int

KeyType

The key's type as Sentinel names it: HASP-HL for a dongle, HASP-SL for a software key.

public string KeyType { get; init; }

Property Value

string

LicenseType

The type of the main licence's terms as Sentinel names it: perpetual, expiration, executions, trial, timeperiod.

public string LicenseType { get; init; }

Property Value

string

ManagerInfoStatus

The Sentinel status of the query for the computer that serves the key; -1 when it was not asked.

public int ManagerInfoStatus { get; init; }

Property Value

int

Network

True when the main licence is a network licence (computers on the network share its seats); false for this station alone; null when not known.

public bool? Network { get; init; }

Property Value

bool?

Seats

The seats of a network licence; null when they are unlimited or not known.

public int? Seats { get; init; }

Property Value

int?

SeatsInfoStatus

The Sentinel status of the query for the main licence's seats; -1 when it was not asked.

public int SeatsInfoStatus { get; init; }

Property Value

int

ServerAddress

That computer's address as the Sentinel service reports it.

public string ServerAddress { get; init; }

Property Value

string

ServerHost

The host name of the computer whose Sentinel service holds the key.

public string ServerHost { get; init; }

Property Value

string

SubstituteStatus

The Sentinel status of the HiApiSubstitute login; -1 when it was not tried (HiApi was granted).

public int SubstituteStatus { get; init; }

Property Value

int

Methods

Parse(string)

Internal Use Only. Reads the core's text: a main_license element whose attributes are the feature that logged in (0 for none) and the statuses of the logins and the queries, holding Sentinel's answer to each query.

public static SentinelKeyInfo Parse(string text)

Parameters

text string

The text.

Returns

SentinelKeyInfo

What it says; null when it is not such a text.

Read()

Logs in to the main licence (a session of its own, given back at once), reads the key and its terms, and logs out. Null when the licence source of this process is the cloud lease, and when this core cannot say (a core built before the query, or a text it cannot make out).

public static SentinelKeyInfo Read()

Returns

SentinelKeyInfo

The key and its terms; when no main licence logged in, the statuses alone.

ReadText()

Internal Use Only. The core's text behind Read(); null when the licence source is the cloud lease or the core cannot say.

public static string ReadText()

Returns

string

The text.