Class for managing bundle licenses. A bundle allows activating multiple product licenses together as a single unit. Implements IBundleManager interface.
More...
|
| Dictionary< string, ILicense > | ActivateBundle (LicenseID licenseID) |
| | Activate bundle with given LicenseID.- Parameters
-
| licenseID | Bundle license ID: license key or email and password. |
- Returns
- Dictionary of activated licenses mapped by product code.
- Exceptions
-
|
| |
| Dictionary< string, ILicense > | ActivateBundle (LicenseID licenseID, DeviceVariable[] deviceVariables) |
| | Activate bundle with given LicenseID and device variables.- Parameters
-
| licenseID | Bundle license ID: license key or email and password. |
| deviceVariables | An array of device variables to be sent to the LicenseSpring platform during bundle activation. |
- Returns
- Dictionary of activated licenses mapped by product code.
- Exceptions
-
|
| |
| Dictionary< string, ILicense > | ActivateBundle (string data, string accountCode=null, bool useToken=false, string redirectUri=null) |
| | Activate bundle using SSO.You can omit accountCode param if you already set customer account code through the Configuration.
|
| |
| Dictionary< string, ILicense > | ActivateBundleOffline (string activationResponseFile=null) |
| | Activate bundle using offline activation response file.- Parameters
-
| activationResponseFile | Path to the activation response file (.lic file). If null, looks for file on desktop. |
- Returns
- Dictionary of activated licenses mapped by product code.
- Exceptions
-
| System.InvalidOperationException | Thrown when bundle manager is not initialized. |
| System.IO.FileNotFoundException | If activation response file not found. |
| LicenseSpring.SignatureMismatchException | In case signature in response file is not valid. |
|
| |
| | BundleManager () |
| | Constructor of BundleManager.
|
| |
| void | CheckBundle (LicenseID licenseID, IInstallationFileOptions filter=null, bool includeExpiredFeatures=false) |
| | Check bundle license with LicenseSpring backend and update local data.- Parameters
-
| licenseID | Bundle license ID: license key or email and password. |
| filter | Optional filter for installation files. |
| includeExpiredFeatures | If true, includes expired features in the response. |
- Exceptions
-
|
| |
| new void | ClearLocalStorage () |
| | Override ClearLocalStorage to also clear cached licenses.
|
| |
| bool | DeactivateBundle (LicenseID licenseID, bool removeLocalData=false) |
| | Deactivate bundle license.- Parameters
-
| licenseID | Bundle license ID: license key or email and password. |
| removeLocalData | If true, removes local storage. If false, marks licenses as inactive locally. |
- Returns
- True if deactivation successful.
- Exceptions
-
|
| |
| string | DeactivateBundleOffline (LicenseID licenseID, string deactivationRequestFile=null) |
| | Create offline deactivation request file for bundle.- Parameters
-
| licenseID | Bundle license ID: license key or email and password. |
| deactivationRequestFile | Path where to save the request file. If null, saves to desktop as ls_deactivation.req. |
- Returns
- Full path to the created request file.
- Exceptions
-
| System.InvalidOperationException | Thrown when bundle manager is not initialized. |
|
| |
| Dictionary< string, ILicense > | GetCurrentBundle () |
| | Get the current bundle from local storage.Loads bundle licenses lazily from storage on first access.
|
| |
| string | GetOfflineActivationFile (LicenseID licenseID, DeviceVariable[] deviceVariables, string activationRequestFile=null) |
| | Creates offline activation file request.- Parameters
-
| licenseID | License ID, license key or email and password. |
| deviceVariables | An array of device variables to be sent to the LicenseSpring platform during license activation. |
| activationRequestFile | Activation request file path, null means use default path (Desktop). |
- Returns
- Path to offline activation file request.
- Exceptions
-
| System.InvalidOperationException | Thrown when license manager is not initialized. |
|
| |
| string | GetOfflineActivationFile (LicenseID licenseID, string activationRequestFile=null) |
| | Creates offline activation file request.- Parameters
-
| licenseID | License ID, license key or email and password. |
| activationRequestFile | Activation request file path, null means use default path (Desktop). |
- Returns
- Path to offline activation file request.
- Exceptions
-
| System.InvalidOperationException | Thrown when license manager is not initialized. |
|
| |
| ProductDetails | GetProductDetails (bool includeCustomFields, bool includeLatestVersion, string env) |
| | Retrieve information about a product from LicenseSpring backend.- Parameters
-
| includeCustomFields | If true, includes custom fields data. |
| includeLatestVersion | If true, includes latest version information. |
| env | Optional parameter, filters products by environment string. |
- Returns
- Product details.
|
| |
| ProductDetails | GetProductDetails (bool includeCustomFields=false, bool includeLatestVersion=false) |
| | Retrieve information about a product from LicenseSpring backend.In offline mode data will be retrieved from license file if present.
|
| |
| void | ClearLocalStorage () |
| | Removes the license file, license log and folders created by the SDK.
|
| |
| ILicense | CurrentLicense () |
| | Load license from local storage (if not yet loaded).
|
| |
| virtual void | Initialize (Configuration configuration, ILicenseStorage storage=null) |
| | Initialize license manager with the given configuration.
|
| |
| bool | IsInitialized () |
| | Check whether license manager has been initialized.
|
| |
| string | LicenseFilePath () |
| | Returns full path to the license file, meaningful only if LicenseFileStorage (or derived) is used.
|
| |
| ILicense | ReloadLicense () |
| | Resets current license and loads it again from the local storage.
|
| |
|
void | Initialize (Configuration configuration, ILicenseStorage storage=null) |
| | See BaseManager.Initialize.
|
| |
|
bool | IsInitialized () |
| | See BaseManager.IsInitialized.
|
| |
|
string | LicenseFilePath () |
| | See BaseManager.LicenseFilePath.
|
| |
Class for managing bundle licenses. A bundle allows activating multiple product licenses together as a single unit. Implements IBundleManager interface.