Using Locks to Control Access to the Protected Software

A license file contains a collection of locks, lock is a term used to define a constraint or a property that can be inquired at runtime for its value at any time. Each license may contain different locks, giving different users of the software different levels of access to the protected software. Each license can contain any number of locks that define exactly how the user may use the software.

For example the Trial lock marks the license as a trial, you may inquire a license if it's trial by calling the AgileDotNetLicense.IsTrial property. The trial lock does not specify any time period for the trial, therefore you may want to add a Time Lock to set a time period upon which the trial expires.

The following table lists the lock types supported by Agile.net Copy Protection module:

Lock Description
Trial Marks the license as a trial, used to provide prospects an evaluation license. You may use the Trial Lock together with Time Lock in order to set a time period for the trial, thus limiting the time a user can evaluate the protected software.
Time Controls how long a user can use the protected software. Typically it's used to define a subscription license that is valid for a set time period or together with the Trial Lock to set an expiration date for the evaluation.
Mac Address Restricts the use of the protected software to a machine mounted with a designated NIC.