Method WithAutomationScript
- Namespace
- Skyline.AppInstaller
- Assembly
- Skyline.DataMiner.Core.AppPackageCreator.dll
WithAutomationScript(IAppPackageAutomationScript)
Adds the specified Automation script to this package.
IAppPackageBuilder WithAutomationScript(IAppPackageAutomationScript automationScript)
Parameters
automationScriptIAppPackageAutomationScriptThe Automation script to add.
Returns
- IAppPackageBuilder
A reference to this instance after this operation has completed.
Exceptions
- ArgumentNullException
automationScriptis null.- ArgumentException
The specified Automation script does not have a name specified. -or- The specified Automation script does not have a version specified. -or- The specified Automation script does not exist. -or- The specified Automation script does not have a file or content specified.
- InvalidOperationException
An Automation script with this name has already been added.
WithAutomationScript(IAppPackageAppPackage)
Adds the specified Automation script package to this package.
IAppPackageBuilder WithAutomationScript(IAppPackageAppPackage automationScriptPackage)
Parameters
automationScriptPackageIAppPackageAppPackageThe Automation script package to add.
Returns
- IAppPackageBuilder
A reference to this instance after this operation has completed.
Exceptions
- ArgumentNullException
automationScriptPackageis null.- ArgumentException
The specified Automation script does not have a file path specified. -or- The specified Automation script package does not exist.
- InvalidOperationException
An Automation script package with this path has already been added.