Skip to content

IPluginLicense

Interface in Oadm.Sdk.Licensing · Oadm.Sdk.dll

The live license of the plugin (ICorePluginContext.License, ITaskExecutionContext.License, IActionContext.License): the current state, updated when an administrator enters or removes a license and when it or the trial runs out. OADM only checks; the plugin decides what to do without a valid license.

public interface IPluginLicense
PluginLicenseInfo Current { get; }

The current state.

bool IsValid { get; }

Default implementation

The plugin may run: a valid license, a running trial, or no license needed.

bool Has(string feature)

Default implementation

Whether the license unlocks feature (see PluginLicenseInfo.Has).

long? Limit(string name)

Default implementation

The limit name (see PluginLicenseInfo.Limit).

event EventHandler? Changed

Raised after IPluginLicense.Current changed. Runs on a server thread; keep the handler short.