Skyline.DataMiner.Utils.SafeConverters 1.0.0.1

Prefix Reserved
dotnet add package Skyline.DataMiner.Utils.SafeConverters --version 1.0.0.1                
NuGet\Install-Package Skyline.DataMiner.Utils.SafeConverters -Version 1.0.0.1                
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.Utils.SafeConverters" Version="1.0.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Skyline.DataMiner.Utils.SafeConverters --version 1.0.0.1                
#r "nuget: Skyline.DataMiner.Utils.SafeConverters, 1.0.0.1"                
#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.
// Install Skyline.DataMiner.Utils.SafeConverters as a Cake Addin
#addin nuget:?package=Skyline.DataMiner.Utils.SafeConverters&version=1.0.0.1

// Install Skyline.DataMiner.Utils.SafeConverters as a Cake Tool
#tool nuget:?package=Skyline.DataMiner.Utils.SafeConverters&version=1.0.0.1                

Skyline.DataMiner.Utils.SafeConverters

About

About Skyline.DataMiner.Utils.SafeConverters

Skyline.DataMiner.Utils.SafeConverters is a NuGet package n the public nuget store that contain assemblies that assist in the safe convertion of one type to another/

Specifically they handle arithmic overflow issues when going from a double to a uint or ulong value. This is particularly useful for Rate Calculations.

Documentation: Rate Calculations

This safe converter will first check if the value is bigger than, in this example, the maximum value of UInt64 and in that case, return this maximum value. Again, you should not be afraid of this inaccuracy here as it will be very negligible and will only return a value closer to reality, since it all started from a counter that almost reached the maximum value of the counter type (in no case bigger).

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 exist. In addition, you can leverage DataMiner Development Packages to build you own connectors (also known as "protocols" or "drivers").

[!TIP] 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.

Requirements

The "DataMiner Integration Studio" Visual Studio extension is required for development of connectors and Automation scripts using NuGets.

See Installing DataMiner Integration Studio

[!IMPORTANT] NuGets are mandatory to be installed with PackageReferences. DIS was redesigned to work with PackageReferences and be future-proof.

For more information on how to migrate from packages.config to PackageReferences, see docs.microsoft.com.

Getting started

    double counterAsDouble = Convert.ToDouble(protocol.GetParameter(Parameter.counter));
    ulong counter = SafeConvert.ToUInt64(counterAsDouble)
Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.

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
1.0.0.1 16,382 1/26/2023