Table of Contents

Method WithAutomationScript

Namespace
Skyline.AppInstaller
Assembly
Skyline.DataMiner.Core.AppPackageCreator.dll

WithAutomationScript(IAppPackageAutomationScript)

Adds the specified Automation script to this package.

public IAppPackageBuilder WithAutomationScript(IAppPackageAutomationScript automationScript)

Parameters

automationScript IAppPackageAutomationScript

The Automation script to add.

Returns

IAppPackageBuilder

A reference to this instance after this operation has completed.

Exceptions

ArgumentNullException

automationScript is 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.

public IAppPackageBuilder WithAutomationScript(IAppPackageAppPackage automationScriptPackage)

Parameters

automationScriptPackage IAppPackageAppPackage

The Automation script package to add.

Returns

IAppPackageBuilder

A reference to this instance after this operation has completed.

Exceptions

ArgumentNullException

automationScriptPackage is 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.