Greetings,
I have been trying to implement hosted floating licenses and the documentation isn’t the best on exactly the workflow. My question is, after the initial SetLicenseKey() → ActivateLicense(), is it necessary to call ActivateLicense() on subsequent starts of the app to “check out” a license, or does IsLicenseGenuine() handle the “check out”? From what I can tell debugging, I only need to call IsLicenseGenuine() but I wanted to confirm. My example workflow:
LexActivator.SetProductData(LicUtil.__productdat)
LexActivator.SetProductId(LicUtil.__productid, PermissionFlags.LA_USER)
LexActivator.SetLicenseCallback(LicUtil.servsync_callback)
status = LexActivator.IsLicenseGenuine()
if status==LexStatusCodes.LA_FAIL:
#ask user for license key
LexActivator.SetLicenseKey(key)
LexActivator.ActivateLicense()
elif status==LexStatusCodes.LA_OK:
#continue with launch
#DOES A LICENSE GET "CHECKED OUT" HERE AUTOMATICALLY?
Thank you.