LicenseClient lifecycle
Validation, caching, auto-validation, and error surfaces.
LicenseClient is the primary API: paths to license.bin, public key material, license key, optional expected license type, product id for update checks, and tuning for expiry warnings.
After a successful online validation, call TryAutoValidateAsync (or the documented equivalent for your version) so the encrypted offline cache stays warm for air-gapped scenarios.
Online validation hits POST /api/Licenses/validate with the product X-API-KEY — see Licenses REST and full .NET article.
Nothing stays licensed after a rejection. When ValidateAsync rejects a license after loading it (wrong license type, wrong license key, failed activation or session), the SDK disconnects the session and clears LicenseManager.Current and the features. A later failed validation of the same key, a heartbeat that reports the license invalid, and LicenseManager.CloseAsync clear them too.
