DeployLX Licensing supports a lightweight diagnostic mode that captures additional details and modifies behavior to make it easier during development to diagnose issues and test licenses.
To enable Developer Mode, you set the DeveloperMode property of the LicenseValidationRequestInfo object to true before calling SecureLicenseManager.
var info = new LicenseValidationRequestInfo(); #if DEBUG info.DeveloperMode = true; #endif _license = SecureLicenseManager.Validate( this, null, info );
Using #if DEBUG ensures that Developer Mode is not enabled in the release build.
When Developer Mode is enabled the following behavioral changes are applied.
The following additional LicenseValidationRequestInfo properties are useful during development.
| Property | Behavior | DeveloperMode Required |
|---|---|---|
| DontPersistToStorage | DeployLX does not save any client state -- such as the time remaining in a trial -- to secure storage. | Yes |
| SimulateOffline | Test licenses that use a license server as if the machine was not connected to the internet. | Yes |
| ShouldGetNewSerialNumber | DeployLX will ignore any serial numbers currently stored in the license. Useful during development to test the registration process. | No |
| TestDate | Safely test the behavior of time limited licenses without changing the system clock. | No |