Table of Contents

Class LicenseGuard

Namespace
CapCognition.Maui.Core.Shared.Common
Assembly
CapCognition.Maui.Core.dll
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

bool

IsSet

true if the licensed state has been set via SetLicensed.

public bool IsSet { get; }

Property Value

bool

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

isLicensed bool