![]() |
LicenseSpring .Net SDK 7.30.0
Easily add Software Licensing to your application
|
Class that saves license in a file and provides interprocess synchronization for the license file. More...
Public Member Functions | |||
override void | Clear () | ||
Removes local license data. | |||
LicenseFileStorageEx () | |||
LicenseFileStorageEx constructor. | |||
LicenseFileStorageEx (string licenseFilePath=null) | |||
LicenseFileStorageEx constructor. | |||
override string | LoadLicense () | ||
Load license from file.
| |||
override void | SaveLicense (string licenseData) | ||
Saves given license data string to the file.
| |||
![]() | |||
string | LicenseFilePath () | ||
Returns full path to the license file. | |||
LicenseFileStorage () | |||
LicenseFileStorage constructor. | |||
LicenseFileStorage (string licenseFilePath=null) | |||
LicenseFileStorage constructor. | |||
Properties | |
string | MutexName [get, set] |
Mutex name for Interprocess Synchronization. | |
int | WaitTimeout [get, set] |
Mutex wait timeout in milliseconds. | |
![]() | |
string | LicenseFileName [get, set] |
License filename with extension (optional) | |
string | LicenseFolderPath [get, set] |
Folder path where License file is being stored. | |
Additional Inherited Members | |
![]() | |
void | DeleteFile () |
Delete license file. | |
string | LoadFromFile () |
Read string data from the file. | |
void | SaveToFile (string data) |
Write string data to the file. | |
Class that saves license in a file and provides interprocess synchronization for the license file.
Use this storage if you intend to use many instances of your application simultaneously.
LicenseSpring.LicenseFileStorageEx.LicenseFileStorageEx | ( | string | licenseFilePath = null | ) |
LicenseFileStorageEx constructor.
licenseFilePath | Optional argument, path to the license file |
|
virtual |
Removes local license data.
Reimplemented from LicenseSpring.LicenseFileStorage.
|
virtual |
Load license from file.
Reimplemented from LicenseSpring.LicenseFileStorage.
|
virtual |
Saves given license data string to the file.
licenseData | License data string |
Reimplemented from LicenseSpring.LicenseFileStorage.
|
getset |
Mutex name for Interprocess Synchronization.
Default MutexName is "Global\\" + Normalized( LicenseFilePath() )
|
getset |
Mutex wait timeout in milliseconds.
Default timeout is 5 seconds (5000 ms)