How to protect a .NET Core app with QLM
Note that QLM support for .NET Core is currently in Beta. It will be officially released in Sept 2019 when .NET Core 3 will be released.
Please contact us to request access to the Beta release.
To protect a .NET Core app with QLM:
Download the QLM .NET Core library (QlmLicenseLibNetCore.dll)
In your .NET Core project:
Add a reference to QlmLicenseLibNetCore.dll
Add the following nuget packages:
System.Private.ServiceModel
System.Security.Cryptography.Xml
System.ServiceModel.Http
From the QLM Management Console, generate a LicenseValidator class (C#)
Add the LicenseValidator class your .NET Core project
When your application is loaded, call the LicenseValidator.ValidateLicenseAtStartup function as shown in the code below (this is similar to a regular .NET 4.x project)
Last updated