Skyline.DataMiner.SDM.Registration.Protocol 2.0.5

Prefix Reserved
dotnet add package Skyline.DataMiner.SDM.Registration.Protocol --version 2.0.5
                    
NuGet\Install-Package Skyline.DataMiner.SDM.Registration.Protocol -Version 2.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Skyline.DataMiner.SDM.Registration.Protocol" Version="2.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Skyline.DataMiner.SDM.Registration.Protocol" Version="2.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Skyline.DataMiner.SDM.Registration.Protocol" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Skyline.DataMiner.SDM.Registration.Protocol --version 2.0.5
                    
#r "nuget: Skyline.DataMiner.SDM.Registration.Protocol, 2.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Skyline.DataMiner.SDM.Registration.Protocol@2.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Skyline.DataMiner.SDM.Registration.Protocol&version=2.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Skyline.DataMiner.SDM.Registration.Protocol&version=2.0.5
                    
Install as a Cake Tool

Skyline.DataMiner.SDM.Registration.Protocol

Extension methods for DataMiner protocols (connectors/drivers) to access the SDM Registration API. This package enables protocols to register and query solution metadata directly from QActions.

Features

  • 🔍 Solution Registration - Register and track solution installations with version information
  • 📊 Model Management - Register data models with API endpoints and visualization links
  • Validation - Built-in validation middleware to ensure data integrity
  • 🔄 Synchronization - Automatic synchronization between models and solutions
  • 💾 DOM Integration - Seamless integration with DataMiner Object Model (DOM) storage
  • 🎯 Type-Safe Queries - Strongly-typed repository pattern for efficient data access

Installation

Install via NuGet Package Manager:

Install-Package Skyline.DataMiner.SDM.Registration.Protocol

Or via .NET CLI:

dotnet add package Skyline.DataMiner.SDM.Registration.Protocol

Quick Start

Using in a QAction

using Skyline.DataMiner.Scripting;
using Skyline.DataMiner.SDM.Registration;

public class QAction
{
    public static void Run(SLProtocol protocol)
    {
        // Get the SDM registrar from the protocol
        var registrar = protocol.GetSdmRegistrar();

        // Query registered solutions
        var solutions = registrar.Solutions.Read(new TRUEFilterElement<SolutionRegistration>());

        foreach (var solution in solutions)
        {
            protocol.Log($"Found solution: {solution.DisplayName} v{solution.Version}");
        }
    }
}

Registering from a Protocol

using Skyline.DataMiner.Scripting;
using Skyline.DataMiner.SDM.Registration;

public class QAction
{
    public static void Run(SLProtocol protocol)
    {
        try
        {
            var registrar = protocol.GetSdmRegistrar();

            // Register a solution
            var solution = new SolutionRegistration
            {
                ID = "device_manager",
                DisplayName = "Device Manager",
                Version = "1.0.0",
                DefaultApiEndpoint = "/api/custom/device_manager",
                DefaultApiScriptName = "DeviceManager.CRUD"
            };

            registrar.Solutions.Create(solution);
            protocol.Log("Solution registered successfully!");
        }
        catch (Exception ex)
        {
            protocol.Log($"Registration failed: {ex.Message}", LogType.Error, LogLevel.NoLogging);
        }
    }
}

Checking Solution Versions

using Skyline.DataMiner.Scripting;
using Skyline.DataMiner.SDM.Registration;

public class QAction
{
    public static void Run(SLProtocol protocol)
    {
        var registrar = protocol.GetSdmRegistrar();

        try
        {
            // Check if a specific solution is registered
            var solution = registrar.Solutions.GetSolutionById("my_solution");

            // Update protocol parameter with version info
            protocol.SetParameter(100, solution.Version);
            protocol.SetParameter(101, solution.DisplayName);

            protocol.Log($"Solution version: {solution.Version}");
        }
        catch (RegistrationNotFoundException ex)
        {
            protocol.Log($"Solution not found: {ex.Message}", LogType.Error, LogLevel.NoLogging);
        }
    }
}

Listing Models for Integration

using Skyline.DataMiner.Scripting;
using Skyline.DataMiner.SDM.Registration;

public class QAction
{
    public static void Run(SLProtocol protocol)
    {
        var registrar = protocol.GetSdmRegistrar();

        // Get all models from a specific solution
        var solution = registrar.Solutions.GetSolutionById("inventory_system");
        var models = registrar.Models.Read(
            ModelRegistrationExposers.Solution.Equal(solution.Identifier)
        );

        // Build a list of available models for dropdown
        var modelNames = models.Select(m => m.DisplayName).ToArray();
        protocol.Log($"Available models: {string.Join(", ", modelNames)}");
    }
}

About DataMiner

DataMiner is a transformational platform that provides vendor-independent control and monitoring of devices and services. Out of the box and by design, it addresses key challenges such as security, complexity, multi-cloud, and much more. It has a pronounced open architecture and powerful capabilities enabling users to evolve easily and continuously.

The foundation of DataMiner is its powerful and versatile data acquisition and control layer. With DataMiner, there are no restrictions to what data users can access. Data sources may reside on premises, in the cloud, or in a hybrid setup.

A unique catalog of 7000+ connectors already exists. In addition, you can leverage DataMiner Development Packages to build your own connectors (also known as "protocols" or "drivers").

Note See also: About DataMiner.

About Skyline Communications

At Skyline Communications, we deal in world-class solutions that are deployed by leading companies around the globe. Check out our proven track record and see how we make our customers' lives easier by empowering them to take their operations to the next level.

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.5 93 3/16/2026
2.0.4 89 3/16/2026
2.0.3 85 3/16/2026
2.0.2 86 3/16/2026
2.0.1 83 3/16/2026
2.0.0 92 3/16/2026