RAII object for holding an Enterprise floating license in a scope. More...
RAII object for holding an Enterprise floating license in a scope.
Automatically releases the license when destroyed.
Example:
Public Member Functions | |
LicenseCheckout (int64_t duration=900) | |
RAII constructor that checks out a license. | |
~LicenseCheckout () | |
|
explicit |
RAII constructor that checks out a license.
License will be refreshed automatically in a background thread while checked out, in intervals of `duration` In the event of program crash, the license will expire `duration` seconds after the most recent background refresh, so you may want a smaller value like 60 if you expect your program to crash / be killed often. See class docs for example usage.
duration | Duration for refreshes and also length of each license checkout. |
EnterpriseException | If license checkout fails |
BinaryNinja::Enterprise::LicenseCheckout::~LicenseCheckout | ( | ) |