Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO: Limit serial validations to a certain number of machines.

 
Subscribe to the RSS feed for this forum  Forum Index -> CryptoLicensing For .Net
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Mon Jan 31, 2011 5:55 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.
Back to top
Display posts from previous:   
Forum Index -> CryptoLicensing For .Net All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group