Skip to content

Labs64/NetLicensingClient-csharp

Repository files navigation

Innovative License Management Solution

NetLicensing C# Client - CI Nuget Nuget Downloads Apache License 2.0 📖 Documentation NetLicensing @ LinkedIn

C# wrapper for Labs64 NetLicensing RESTful API

📖 Documentation

Visit NetLicensing Wiki for setup and configuration tips, as well as examples on how to use licensing models.

Quick Start

Installation

The recommended way to get started using NetLicensingClient-csharp in your project is with a dependency management system – the snippets below can be copied and pasted into your build configuration.

Package Manager:

PM> Install-Package NetLicensingClient-csharp -Version x.y.z

.NET CLI:

> dotnet add package NetLicensingClient-csharp --version x.y.z

PackageReference:

<PackageReference Include="NetLicensingClient-csharp" Version="x.y.z" />

Paket CLI:

> paket add NetLicensingClient-csharp --version x.y.z

How to Use

This minimal example shows how to trigger validation request using APIKey identification.

ValidationParameters validationParameters = new ValidationParameters();
validationParameters.setProductNumber("yourProductNumber");
validationParameters.put("yourProductModuleNumber", "paramKey", "paramValue");

Context context = new Context();
context.securityMode = SecurityMode.APIKEY_IDENTIFICATION;
context.apiKey = "apiKeyNumber";
ValidationResult validationResult = LicenseeService.validate(context, "yourLicenseeNumber", validationParameters);

How to Contribute

Everyone is welcome to contribute to this project! Feel free to contribute with pull requests, bug reports or enhancement suggestions.

Bugs and Feedback

For bugs, questions and discussions please use the GitHub Issues.

Links