OpenTAP 9.25
API Reference
|
Indicates a well defined action to be performed on a package. A number of common actions are PackageInstallAction, PackageUninstallAction, and PackageDownloadAction. Deriving from this, and annotating the class and any public properties with CommandLineArgumentAttribute and UnnamedCommandLineArgument attributes will allow it to be called from the OpenTAP.Package CLI. More...
Public Member Functions | |
delegate void | ProgressUpdateDelegate (int progressPercent, string message) |
A delegate used by ProgressUpdate More... | |
delegate void | ErrorDelegate (Exception ex) |
A delegate type used by the Error event. More... | |
abstract int | Execute (CancellationToken cancellationToken) |
The code to be executed by the action. More... | |
Protected Member Functions | |
void | RaiseError (Exception ex) |
Call this to raise the Error event. More... | |
void | RaiseProgressUpdate (int progressPercent, string message) |
Call this to raise the ProgressUpdate event. More... | |
Static Protected Attributes | |
static TraceSource | log = OpenTap.Log.CreateSource("PackageAction") |
Log source for PackageAction plugins. | |
Events | |
ProgressUpdateDelegate | ProgressUpdate |
Called by the action to indicate how far it has gotten. Will usually be called with a progressPercent of 100 to indicate that it is done. | |
ErrorDelegate | Error |
Called when a critical error happens. | |
Indicates a well defined action to be performed on a package. A number of common actions are PackageInstallAction, PackageUninstallAction, and PackageDownloadAction. Deriving from this, and annotating the class and any public properties with CommandLineArgumentAttribute and UnnamedCommandLineArgument attributes will allow it to be called from the OpenTAP.Package CLI.
delegate void OpenTap.Package.PackageAction.ErrorDelegate | ( | Exception | ex | ) |
A delegate type used by the Error event.
ex |
|
pure virtual |
The code to be executed by the action.
Implements OpenTap.Cli.ICliAction.
Implemented in OpenTap.Package.PackageCreateAction, OpenTap.Package.IsolatedPackageAction, and OpenTap.Package.LockingPackageAction.
delegate void OpenTap.Package.PackageAction.ProgressUpdateDelegate | ( | int | progressPercent, |
string | message | ||
) |
A delegate used by ProgressUpdate
progressPercent | Indicates progress from 0 to 100. |
message |
|
inlineprotected |
Call this to raise the Error event.
ex |
|
inlineprotected |
Call this to raise the ProgressUpdate event.
progressPercent | |
message |
OpenTAP 9.25 API built Tue Aug 6 2024 07:49:25