Hosted Floating Licenses
With hosted floating licenses, Cryptlex's servers act as the license server, so your app leases seats directly from Cryptlex and you only need LexActivator. For how floating licensing works in general, see the Floating Licenses overview.
Creating a hosted floating license
When creating the license, configure it as follows:
- Set the license type to
hosted-floating. - Set the lease duration to how long you want each seat leased.
- Keep the server sync interval shorter than the lease duration by at least 30 seconds, since server sync is what renews the lease.
Adding floating licensing to your app
You implement hosted floating licenses the same way as node-locked licenses with LexActivator, with a difference in how you activate and release seats: validate the license first, activate only when needed, and release the seat on exit so it does not become a zombie. For the implementation and code sample, see hosted floating licenses.
Borrowing for offline use
To let a user work offline, lease the license for a longer duration by calling SetActivationLeaseDuration() before activating, so the app keeps working while disconnected and the seat is freed automatically when the lease expires. This requires enabling the license's allow client lease duration property. For on-premise deployments, borrowing works differently, through offline floating licenses.