Skyline.DataMiner.Core.ArtifactInstaller
2.0.0-alpha4
Prefix Reserved
dotnet add package Skyline.DataMiner.Core.ArtifactInstaller --version 2.0.0-alpha4
NuGet\Install-Package Skyline.DataMiner.Core.ArtifactInstaller -Version 2.0.0-alpha4
<PackageReference Include="Skyline.DataMiner.Core.ArtifactInstaller" Version="2.0.0-alpha4" />
paket add Skyline.DataMiner.Core.ArtifactInstaller --version 2.0.0-alpha4
#r "nuget: Skyline.DataMiner.Core.ArtifactInstaller, 2.0.0-alpha4"
// Install Skyline.DataMiner.Core.ArtifactInstaller as a Cake Addin #addin nuget:?package=Skyline.DataMiner.Core.ArtifactInstaller&version=2.0.0-alpha4&prerelease // Install Skyline.DataMiner.Core.ArtifactInstaller as a Cake Tool #tool nuget:?package=Skyline.DataMiner.Core.ArtifactInstaller&version=2.0.0-alpha4&prerelease
Skyline.DataMiner.Core.ArtifactInstaller
Skyline.DataMiner.Core.ArtifactInstaller is a .NET library that streamlines the process of installing various artifacts—such as Low-Code Apps and Dashboards—into DataMiner systems. It provides a simple and robust API for automating artifact deployment with built-in error handling and flexible configuration.
📦 Features
- Artifact Installation: Seamlessly install Low-Code Apps and Dashboards into DataMiner systems.
- Simple Integration: Minimal setup required with SLNet and HTTP client configuration.
- Asynchronous Operations: Non-blocking, efficient installation processes.
- Robust Error Handling: Comprehensive exception management for installation failures.
🚀 Getting Started
📥 Installation
Install the package via NuGet:
dotnet add package Skyline.DataMiner.Core.ArtifactInstaller
🔧 Usage
1. Connect to DataMiner
using System.Net.Http;
using Skyline.ArtifactInstaller;
using Skyline.DataMiner.Net;
var slnetConnection = ConnectionSettings.GetConnection("your-dataminer-host");
var httpClient = new HttpClient();
var dataMinerService = Installer.ToDataMiner(slnetConnection, httpClient);
2. Install a Low-Code App
using Skyline.ArtifactInstaller.Identifiers;
var appZip = new ZipIdentifier(@"C:\Artifacts\MyLowCodeApp.zip");
string result = await dataMinerService.InstallLowCodeAppAsync(appZip);
Console.WriteLine($"Low-Code App installation result: {result}");
3. Install a Dashboard
using Skyline.ArtifactInstaller.Identifiers;
var dashboardZip = new ZipIdentifier(@"C:\Artifacts\MyDashboard.zip");
string result = await dataMinerService.InstallDashboardAsync(dashboardZip);
Console.WriteLine($"Dashboard installation result: {result}");
🛠️ API Overview
Installer Factory
IDataMinerService Installer.ToDataMiner(IConnection slnetConnection, HttpClient httpClient)
- Initializes a connection to the DataMiner system for artifact installation.
IDataMinerService Interface
InstallDashboardAsync:
Installs a Dashboard from a.zip
package.InstallLowCodeAppAsync:
Installs a Low-Code App from a.zip
package.
Task<string> InstallDashboardAsync(ZipIdentifier id);
Task<string> InstallLowCodeAppAsync(ZipIdentifier id);
⚠️ Error Handling
InvalidOperationException
: Triggered when installation fails after multiple retries.DataMinerException
: Raised if there are issues retrieving system information during setup.
🤝 Contributing
Contributions are welcome! Please submit issues or pull requests to help improve the library.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- Skyline.DataMiner.CICD.FileSystem (>= 1.0.6)
- Skyline.DataMiner.Files.SLNetTypes (>= 10.4.12)
- System.Memory (>= 4.6.0)
- System.Text.Json (>= 9.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Skyline.DataMiner.Core.ArtifactInstaller:
Package | Downloads |
---|---|
Skyline.DataMiner.Core.AppPackageInstaller
Library providing methods to install contents of a DataMiner application package on a DMS. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0-alpha4 | 32 | 1/21/2025 |
2.0.0-alpha3 | 33 | 1/20/2025 |
2.0.0-alpha2 | 43 | 1/16/2025 |
2.0.0-alpha1 | 34 | 1/16/2025 |