Base class for License management
More...
Base class for License management
Inherited by LicenseManager
and FloatingClient
◆ ClearLocalStorage()
void LicenseSpring.BaseManager.ClearLocalStorage |
( |
| ) |
|
Remove license file, license log if present and folders created by the SDK
Typically should be called after license deactivation in app uninstaller
- Exceptions
-
System.InvalidOperationException | Thrown when license manager is not initialized |
◆ CurrentLicense()
ILicense LicenseSpring.BaseManager.CurrentLicense |
( |
| ) |
|
Load license from local storage (if not yet loaded)
If license has been already loaded this method just returns existing license object.
- Returns
- License object or null if no license exists for current configuration
- Exceptions
-
◆ Initialize()
Initialize license manager with given configuration
- Parameters
-
configuration | Configuration object to use |
storage | Storage for local license, by default local license is saved in a file |
- Exceptions
-
System.ArgumentNullException | Thrown when configuration is null |
◆ IsInitialized()
bool LicenseSpring.BaseManager.IsInitialized |
( |
| ) |
|
Check whether license manager has been initialized
- Returns
- True if license manager has been initialized and ready to use or false otherwise
◆ LicenseFilePath()
string LicenseSpring.BaseManager.LicenseFilePath |
( |
| ) |
|
Returns full path to the license file, meaningful only if LicenseFileStorage (or derived) is used
- Returns
- Absolute path to the license file or null if local storage is not file-based
◆ ReloadLicense()
ILicense LicenseSpring.BaseManager.ReloadLicense |
( |
| ) |
|
Resets current license and loads it again from local storage
- Returns
- License object or null if no license exists for current configuration (DataLocation or LicenseFileName)
- Exceptions
-
◆ DataLocation
string LicenseSpring.BaseManager.DataLocation |
|
getset |
Folder path where LicenseSpring data is being stored
Data like log file, temporary files for offline activation and local license file if LicenseFileStorage is used (which is by default). Default data folder path is Environment.SpecialFolder.LocalApplicationData/LicenseSpring/{ProductCode}
◆ LicenseFileName
string LicenseSpring.BaseManager.LicenseFileName |
|
getset |
The documentation for this class was generated from the following file: