Table of Contents

Class LicenseEventArgs

Namespace
VisioForge.Core.Types.Events
Assembly
VisioForge.Core.dll

Provides data for license-related events, such as license validation or status updates. This class encapsulates the license level and a descriptive message.

public class LicenseEventArgs : EventArgs

Inheritance

Inherited Members

Remarks

This event argument is typically used to inform the application about the current licensing status, which might affect available features or require user interaction. The Level property indicates the license tier (Trial, Standard, Professional, Enterprise) which determines feature availability. The Message property provides human-readable information about license status, expiration warnings, or validation errors. Applications should handle license events to enable/disable features based on the license level. License validation may occur at startup, periodically during runtime, or when license files are updated. Trial licenses may have time limitations, feature restrictions, or watermarking enabled. Professional and Enterprise licenses typically unlock advanced features like hardware acceleration, unlimited resolution, or additional codecs. License events can indicate expiration warnings, allowing proactive renewal notifications to users. Invalid or expired licenses may trigger graceful degradation to trial mode rather than application failure. Applications should provide clear user feedback about license status and upgrade options. Consider implementing license caching to avoid repeated validation checks that could impact performance. License validation may require network connectivity for online activation or verification. Events are typically raised on the main thread but verify thread context for UI updates.

Constructors

LicenseEventArgs(LicenseLevel, string)

Initializes a new instance of the VisioForge.Core.Types.Events.LicenseEventArgs class.

public LicenseEventArgs(LicenseLevel level, string message)

Parameters

level LicenseLevel

The VisioForge.Core.Types.LicenseLevel of the event.

message string

The message text describing the license event.

Properties

Level

Gets the VisioForge.Core.Types.LicenseLevel associated with the event.

public LicenseLevel Level { get; }

Property Value

LicenseLevel

Message

Gets a descriptive message related to the license event.

public string Message { get; }

Property Value

string