![]() |
LicenseSpring .Net SDK 7.22.0
Easily add Software Licensing to your application
|
Class that saves license in a file, implements ILicenseStorage
interface.
More...
Public Member Functions | |
virtual void | Clear () |
Removes local license data More... | |
string | LicenseFilePath () |
Returns full path to the license file More... | |
LicenseFileStorage () | |
LicenseFileStorage constructor | |
LicenseFileStorage (string licenseFilePath=null) | |
LicenseFileStorage constructor More... | |
virtual string | LoadLicense () |
Load license from file More... | |
virtual void | SaveLicense (string licenseData) |
Saves given license data string to the file More... | |
void | Clear () |
Removes local license data More... | |
string | LoadLicense () |
Load license data More... | |
void | SaveLicense (string licenseData) |
Save license data somewhere More... | |
Protected Member Functions | |
void | DeleteFile () |
Delete license file | |
string | LoadFromFile () |
Read string data from the file More... | |
void | SaveToFile (string data) |
Write string data to the file More... | |
Properties | |
string | LicenseFileName [get, set] |
License filename with extension (optional) More... | |
string | LicenseFolderPath [get, set] |
Folder path where License file is being stored More... | |
Class that saves license in a file, implements ILicenseStorage
interface.
This is the default license storage type.
File operations of this class is thread safe.
If you intend to use many instances of your application simultaneously please use LicenseFileStorageEx.
LicenseSpring.LicenseFileStorage.LicenseFileStorage | ( | string | licenseFilePath = null | ) |
LicenseFileStorage constructor
licenseFilePath | Optional argument, path to the license file |
|
virtual |
Removes local license data
Implements LicenseSpring.ILicenseStorage.
Reimplemented in LicenseSpring.LicenseFileStorageEx.
string LicenseSpring.LicenseFileStorage.LicenseFilePath | ( | ) |
Returns full path to the license file
|
protected |
Read string data from the file
|
virtual |
Load license from file
Implements LicenseSpring.ILicenseStorage.
Reimplemented in LicenseSpring.LicenseFileStorageEx.
|
virtual |
Saves given license data string to the file
licenseData | License data string |
Implements LicenseSpring.ILicenseStorage.
Reimplemented in LicenseSpring.LicenseFileStorageEx.
|
protected |
Write string data to the file
data | Data to save |
|
getset |
License filename with extension (optional)
Default filename is License.key
|
getset |
Folder path where License file is being stored
Default folder path is Environment.SpecialFolder.LocalApplicationData/LicenseSpring/{ProductCode}