Method WithDashboard
- Namespace
- Skyline.AppInstaller
- Assembly
- Skyline.DataMiner.Core.AppPackageCreator.dll
WithDashboard(string)
Adds the specified dashboard.
[Obsolete("WithDashboard is deprecated. Use WithZip instead.")]
public IAppPackageBuilder WithDashboard(string dashboardFilePath)
Parameters
dashboardFilePathstringThe file path of the dashboard to add.
Returns
- IAppPackageBuilder
A reference to this instance after this operation has completed.
Remarks
This will add the dashboard to the C:\Skyline DataMiner\Dashboards directory.
Exceptions
- ArgumentNullException
dashboardFilePathis null.- ArgumentException
dashboardFilePathis empty. -or- The specified file is not a .json file. -or- The specified dashboard file does not exist.- InvalidOperationException
A dashboard with the specified file name has already been added.
WithDashboard(string, string)
Adds the specified dashboard.
[Obsolete("WithDashboard is deprecated. Use WithZip instead.")]
public IAppPackageBuilder WithDashboard(string dashboardFilePath, string targetDirectory)
Parameters
dashboardFilePathstringThe file path of the dashboard to add.
targetDirectorystringThe target directory where the dashboard should be installed.
Returns
- IAppPackageBuilder
A reference to this instance after this operation has completed.
Remarks
The target directory must be 'C:\\Skyline DataMiner\\Dashboards' or a subfolder of that directory.
Exceptions
- ArgumentNullException
dashboardFilePathortargetDirectoryis null.- ArgumentException
dashboardFilePathis empty. -or- The specified file is not a .json file. -or- The specified dashboard file does not exist. -or- The specified target folder path is not a directory.- InvalidOperationException
A dashboard with the specified file name has already been added for the specified target directory.
WithDashboard(IAppPackageAppPackage)
Adds the specified dashboard package.
[Obsolete("WithDashboard is deprecated. Use WithZip instead.")]
public IAppPackageBuilder WithDashboard(IAppPackageAppPackage dashboardPackage)
Parameters
dashboardPackageIAppPackageAppPackageThe dashboard package to add.
Returns
- IAppPackageBuilder
A reference to this instance after this operation has completed.
Exceptions
- ArgumentNullException
dashboardPackageis null.- ArgumentException
dashboardPackage.FilePath.FilePathis empty. -or- The specified file is not a .json file. -or- The specified dashboard file does not exist.- InvalidOperationException
A dashboard package with the specified file path has already been added for the specified target directory.