Labs64 NetLicensing Client (C#)
C# wrapper for Labs64 NetLicensing RESTful API
Visit NetLicensing Wiki for setup and configuration tips, as well as examples on how to use licensing models.
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
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);
Everyone is welcome to contribute to this project! Feel free to contribute with pull requests, bug reports or enhancement suggestions.
For bugs, questions and discussions please use the GitHub Issues.
- NetLicensing Website: netlicensing.io
- RESTful API: https://netlicensing.io/wiki/restful-api
- GitHub Repo: Labs64/NetLicensingClient-csharp