AiDotNetLicenseKey

Models & Types · AiDotNet.Models

Represents a license key for AiDotNet model encryption and online validation.

For Beginners

When you purchase a license for AiDotNet, you receive a license key. This class wraps that key along with optional configuration for connecting to a license server. You pass it to AiModelBuilder so encrypted models can be loaded and saved.

How It Works

Usage:

Constructors

Constructor Summary
AiDotNetLicenseKey(string key) Creates a new AiDotNetLicenseKey with the specified key string.

Properties

Property Summary
TimeSpan OfflineGracePeriod { get; set; } Gets or sets the duration that a cached validation result remains trusted when the server is unreachable.
bool EnableTelemetry { get; set; } Gets or sets whether advisory machine-ID telemetry is sent to the license server during validation.
string Environment { get; set; } Gets or sets the environment label sent during validation (e.g., “production”, “staging”, “development”).
string Key { get; } Gets the license key string (e.g., “aidn.{id}.{secret}”).
string ServerUrl { get; set; } Gets or sets the URL of the license validation server.