Checks if the license is currently offline.
If the node was offline and the offline maximum duration has been exceeded, the function will return false.
If the node is not offline or the node offline status has expired, this function will attempt to connect to the Floating license DB and return the status from the DB.
C#: bool IsOffline(out bool wasOffline, out string errorMessage)
Parameters
wasOffline - returned flag that indicates whether the node was offline flag prior to this call.
errorMessage - returned error message if the operation failed.
Return
true if the node is offline.
Comments
3 comments
Under what circumstances is the `wasOffline` parameter returned with the value True? I had assumed from the description above that `wasOffline` is True when the node was previously offline but the offline status has expired, but this doesn't seem to be the case in testing.
wasOffline will be true if the node was offline prior to calling IsOffline whether the offline status expired or not.
I can't seem to trigger this by any means. Should I raise a ticket?
Article is closed for comments.