feat(core): Add support for floating licenses (#7090)

This PR updates the license-sdk to v2.5.0 which introduces optional
support for floating licenses.
This commit is contained in:
Cornelius Suermann
2023-09-04 15:56:20 +02:00
committed by GitHub
parent fd78021b68
commit e26553f198
4 changed files with 19 additions and 6 deletions

View File

@@ -104,6 +104,14 @@ export class License {
await this.manager.renew();
}
async shutdown() {
if (!this.manager) {
return;
}
await this.manager.shutdown();
}
isFeatureEnabled(feature: BooleanLicenseFeature) {
return this.manager?.hasFeatureEnabled(feature) ?? false;
}