How to protect a .NET Core app with QLM
ELicenseBinding licenseBinding = ELicenseBinding.ComputerName;
if (lv.ValidateLicenseAtStartup(licenseBinding, ref needsActivation, ref errorMsg) == false)
{
DisplayLicenseForm();
if (lv.ValidateLicenseAtStartup(licenseBinding, ref needsActivation, ref errorMsg) == false)
{
Environment.Exit(0);
}
}
private int DisplayLicenseForm()
{
string errorMessage;
if (lv.QlmLicenseObject.ValidateSettingsFile(settingsFile, out errorMessage) == false)
{
MessageBox.Show(this, errorMessage, "QLM", MessageBoxButtons.OK, MessageBoxIcon.Error);
return 0;
}
string args = String.Format("/settings \"{0}\"", settingsFile);
int ret = lv.QlmLicenseObject.LaunchProcess(wizardExe, args, true, true);
return ret;
}PreviousHow to get the latest enabled features from the serverNextAssociate your own custom data to a license
Last updated