![]() |
LicenseSpring .Net SDK 7.32.1
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. | |
string | LicenseFilePath () |
Returns full path to the license file. | |
LicenseFileStorage () | |
LicenseFileStorage constructor. | |
LicenseFileStorage (string licenseFilePath=null) | |
LicenseFileStorage constructor. | |
virtual string | LoadLicense () |
Load license from file. | |
virtual void | SaveLicense (string licenseData) |
Saves given license data string to the file. | |
Protected Member Functions | |
void | DeleteFile () |
Delete license file. | |
string | LoadFromFile () |
Read string data from the file. | |
void | SaveToFile (string data) |
Write string data to the file. | |
Properties | |
string | LicenseFileName [get, set] |
License filename with extension (optional) | |
string | LicenseFolderPath [get, set] |
Folder path where License file is being stored. | |
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}