![]() |
LicenseSpring .Net SDK 7.30.0
Easily add Software Licensing to your application
|
Base class for License management. More...
Public Member Functions | |
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). | |
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. | |
Properties | |
string | DataLocation [get, set] |
Folder path where LicenseSpring data is being stored. | |
string | LicenseFileName [get, set] |
License filename with extension (optional), meaningful only if LicenseFileStorage is used. | |
Base class for License management.
Inherited by LicenseManager
and FloatingClient
void LicenseSpring.BaseManager.ClearLocalStorage | ( | ) |
Removes the license file, license log and folders created by the SDK.
Typically should be called after license deactivation in the app uninstaller.
System.InvalidOperationException | Thrown if the license manager is not initialized. |
ILicense LicenseSpring.BaseManager.CurrentLicense | ( | ) |
Load license from local storage (if not yet loaded).
If license was already loaded this method returns an existing license object.
System.InvalidOperationException | Thrown if license manager is not initialized. |
LicenseSpring.LocalLicenseException | Thrown if the local license can't be loaded. |
void LicenseSpring.BaseManager.Initialize | ( | Configuration | configuration, |
ILicenseStorage | storage = null |
||
) |
Initialize license manager with the given configuration.
configuration | Configuration object used to initialize the manager. |
storage | Storage for local license, uses local license file by default. |
System.ArgumentNullException | Configuration is null. |
bool LicenseSpring.BaseManager.IsInitialized | ( | ) |
Check whether license manager has been initialized.
string LicenseSpring.BaseManager.LicenseFilePath | ( | ) |
Returns full path to the license file, meaningful only if LicenseFileStorage (or derived) is used.
ILicense LicenseSpring.BaseManager.ReloadLicense | ( | ) |
Resets current license and loads it again from the local storage.
System.InvalidOperationException | Thrown if license manager is not initialized. |
LicenseSpring.LocalLicenseException | Thrown if the local license can't be loaded. |
|
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 it is by default). Default data folder path is Environment.SpecialFolder.LocalApplicationData/LicenseSpring/{ProductCode}
|
getset |
License filename with extension (optional), meaningful only if LicenseFileStorage is used.
Default filename is License.key