Class LicenseGuard
public sealed class LicenseGuard
- Inheritance
-
LicenseGuard
- Inherited Members
Constructors
LicenseGuard()
public LicenseGuard()
Properties
IsLicensed
Returns the current licensed state. This getter performs an integrity check. If tampering is detected, it fails fast.
public bool IsLicensed { get; }
Property Value
IsSet
true if the licensed state has been set via SetLicensed.
public bool IsSet { get; }
Property Value
Methods
CheckIntegrity()
Call this periodically (e.g., on a timer, on important operations, on UI ticks, etc.) to detect runtime tampering attempts as early as possible.
public void CheckIntegrity()
SetLicensed(bool)
Set the licensed state exactly once. Any further attempt throws.
public void SetLicensed(bool isLicensed)
Parameters
isLicensedbool