-
-
Notifications
You must be signed in to change notification settings - Fork 1
Description
According to the wiki page for the PayPerUse licensing model, a validation response will contain
valid=trueif the sum ofquantityof all active licenses (given credits) is bigger than the sum ofusedQuantityof these licenses (used credits).In fact,
valid=trueis also returned (alongsideremainingQuantity=0) if the numbers are equal.
valid=falseis only returned if (in pre-payment mode) you issue a validation withreserveQuantity=Nand N is greater than the number of remaining credits.
(Note: I have only tried issuing calls withreserveQuantity=1, and only getvalid=falseif there are no credits remaining. I don't know for sure what would happen if there were 10 credits remaining and you asked for 11.)So if the current behaviour is intended, the documentation needs to be corrected.
But to say that a PayPerUse license is valid when there are no uses left seems a little strange to me.
source: Labs64/NetLicensingClient-csharp#29
requester: @HappyPathAB