Table of Contents

Event OnDestroy

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

Occurs when the script finishes.

public event EventHandler<DestroyEventArgs> OnDestroy

Returns

EventHandler<DestroyEventArgs>
Occurs when the script finishes.
Implements

Examples

engine.OnDestroy += (sender, args) => { var e = sender as Engine; e.Log($"Script finished with success ? {args.ScriptSucceed}"); };

Remarks

This event provides an opportunity to perform cleanup or other actions after the script is finished. Subscribers can use the event arguments to access additional context about the destruction process.

note

Available from DataMiner 10.6.1/10.7.0 onwards (RN 43919).