Plugin that supports an installation lifecycle
IInstallablePlugin is defined in the Telligent.Evolution.Extensibility.Version1 namespace.
Definition
interface IInstallablePlugin : IPlugin
{
Version Version { get; }
void Install(Version lastInstalledVersion);
Task InstallAsync(Version lastInstalledVersion, CancellationToken cancellationToken);
void Uninstall();
Task UninstallAsync(CancellationToken cancellationToken);
}
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Version | Version | Current version of the plugin |
Methods
void Install(Version lastInstalledVersion);
Called when the currently installed version of the plugin is different from the current version of the plugin
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| lastInstalledVersion | Version | Last Installed Version | Required |
Task InstallAsync(Version lastInstalledVersion, CancellationToken cancellationToken);
Called when the currently installed version of the plugin is different from the current version of the plugin
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| lastInstalledVersion | Version | Last Installed Version | Required | ||
| cancellationToken | CancellationToken | Cancellation Token | Required |
Return Type
void Uninstall();
Called when the plugin is disabled via the Evolution Control Panel
Task UninstallAsync(CancellationToken cancellationToken);
Called when the plugin is disabled via the Evolution Control Panel
Parameters
| Name | Type | Description | Required | Default | Options |
|---|---|---|---|---|---|
| cancellationToken | CancellationToken | Cancellation Token | Required |