Table of Contents

Method WithVisioForProtocol

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

WithVisioForProtocol(string, string, string)

Adds the specified protocol Visio file to the application package.

IAppPackageBuilder WithVisioForProtocol(string protocolName, string visioFilePath, string version)

Parameters

protocolName string

The name of the protocol.

visioFilePath string

The Visio file path.

version string

The Visio version.

Returns

IAppPackageBuilder

A reference to this instance after this operation has completed.

Exceptions

ArgumentNullException

protocolName, visioFilePath or version is null.

ArgumentException

protocolName, visioFilePath or version is empty or white space. -or- The specified file is not a Visio (.vsdx) file. -or- The specified file does not exist.

InvalidOperationException

A Visio with this name has already been added for the specified protocol.

WithVisioForProtocol(string, string, string, bool, bool)

Adds the specified Visio file for the specified protocol to the application package.

IAppPackageBuilder WithVisioForProtocol(string protocolName, string visioFilePath, string version, bool setAsActive, bool setAsDefault = false)

Parameters

protocolName string

The name of the protocol.

visioFilePath string

The Visio file path.

version string

The Visio version.

setAsActive bool

true will set this visio as the active one; otherwise, false.

setAsDefault bool

true to set this visio as the Protocol Default by adding skyline_; otherwise, false.

Returns

IAppPackageBuilder

A reference to the builder after this operation has completed.

Exceptions

ArgumentNullException

protocolName, visioFilePath or version is null.

ArgumentException

protocolName, visioFilePath or version is empty or white space. -or- The specified file is not a Visio (.vsdx) file. -or- The specified file does not exist.

InvalidOperationException

A Visio with this name has already been added for the specified protocol.