Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Mon Jan 31, 2011 10:58 am Post subject: HOWTO: Limit serial validations to a certain number of machines. |
|
|
By default, a serial code can be validated from any number of machines. You can change this behavior by setting the LicenseService.SerialValidationLimit property in the App_Code/LicenseService.cs/vb file as follows:
Code: | public class LicenseServiceClass : LogicNP.CryptoLicensing.LicenseService
{
public LicenseServiceClass()
{
...
...
this.SerialValidationLimit = SerialValidationLimit.FromProfile_MaxActivationsSetting;
}
} |
Code: |
Public Class LicenseServiceClass
Inherits LogicNP.CryptoLicensing.LicenseService
Public Sub New()
...
...
Me.SerialValidationLimit = SerialValidationLimit.FromProfile_MaxActivationsSetting
End Sub
End Class |
The LicenseService.SerialValidationLimit property can have the following enumeration values:
Explicit_SameAsMaxSerialValidations: Specifies that the value of the LicenseService.MaxSerialValidations property specifies the maximum number of machines on which the serial can be validated.
FromProfile_MaxActivationsSetting: Specifies that the value of the 'MaxActivations' setting stored in the profile specifies the maximum number of machines on which the serial can be validated.
FromDatabaseLicense_MaxActivationsSetting: Specifies that the value of the 'MaxActivations' setting stored in the database license specifies the maximum number of machines on which the serial can be validated. This mode requires that the LicenseService.SerialValidationMode property be set to UseLicenseDatabaseFirst or UseLicenseDatabaseOnly. |
|