extensibility:plugins-runnable
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| extensibility:plugins-runnable [2024/08/20 15:34] – [Beispiele] adm-dlatikay | extensibility:plugins-runnable [2025/07/03 14:02] (aktuell) – [Beispiel] adm-dlatikay | ||
|---|---|---|---|
| Zeile 5: | Zeile 5: | ||
| ===== Beschreibung ===== | ===== Beschreibung ===== | ||
| - | Ausführbare Plugins sind dadurch gekennzeichnet, | + | Ausführbare Plugins sind dadurch gekennzeichnet, |
| - | ===== Beispiele | + | ===== Beispiel |
| <file csharp runnable_plugin_example.cs> | <file csharp runnable_plugin_example.cs> | ||
| public class ExampleWorker : AutomationScriptBase | public class ExampleWorker : AutomationScriptBase | ||
| { | { | ||
| - | public ExampleWorker(ScriptedAutomator scriptHost, IdentityBase executiveIdentity, | + | public ExampleWorker(ScriptedAutomator scriptHost, IdentityBase executiveIdentity, |
| : base(scriptHost, | : base(scriptHost, | ||
| { | { | ||
| Zeile 19: | Zeile 19: | ||
| public override bool Execute() | public override bool Execute() | ||
| { | { | ||
| - | | + | |
| - | Job, | + | Job.Success($" |
| - | BackgroundJobStage.JsgAutomation, | + | |
| - | BackgroundJobOutputMessageLevel.BjomlSuccess, | + | |
| - | | + | |
| - | | + | |
| return true; | return true; | ||
| Zeile 35: | Zeile 31: | ||
| ^ Fehlercode | ^ Fehlercode | ||
| - | | CAATS0002 | No suitable public type for runnable plugin | Definiern Sie in Ihrem Skript eine öffentliche Klasse des verlangten Basistyps | | + | | CAATS0002 | No suitable public type for runnable plugin |
| - | | CAATS0004 | Runnable plugin exposes more than one main class | Reduzieren Sie die Anzahl der öffentlichen Klassen des angegebenen Basistyps in Ihrem Skript auf 1 | | + | | CAATS0004 | Runnable plugin exposes more than one main class \\ //Each plugin script must export exactly one main class that satisfies the automator' |
extensibility/plugins-runnable.1724168093.txt.gz · Zuletzt geändert: 2024/08/20 15:34 von adm-dlatikay
