LicenseSpring .Net SDK 7.30.0
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
LicenseSpring.LicenseFileStorageEx Class Reference

Class that saves license in a file and provides interprocess synchronization for the license file. More...

Inheritance diagram for LicenseSpring.LicenseFileStorageEx:
LicenseSpring.LicenseFileStorage LicenseSpring.ILicenseStorage

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.
Returns
Ecrypted license data

 
override void SaveLicense (string licenseData)
 Saves given license data string to the file.
Parameters
licenseDataLicense data string

 
- Public Member Functions inherited from LicenseSpring.LicenseFileStorage
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.
 
- Properties inherited from LicenseSpring.LicenseFileStorage
string LicenseFileName [get, set]
 License filename with extension (optional)
 
string LicenseFolderPath [get, set]
 Folder path where License file is being stored.
 

Additional Inherited Members

- Protected Member Functions inherited from LicenseSpring.LicenseFileStorage
void DeleteFile ()
 Delete license file.
 
string LoadFromFile ()
 Read string data from the file.
 
void SaveToFile (string data)
 Write string data to the file.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LicenseFileStorageEx()

LicenseSpring.LicenseFileStorageEx.LicenseFileStorageEx ( string  licenseFilePath = null)

LicenseFileStorageEx constructor.

Parameters
licenseFilePathOptional argument, path to the license file

Member Function Documentation

◆ Clear()

override void LicenseSpring.LicenseFileStorageEx.Clear ( )
virtual

Removes local license data.

Reimplemented from LicenseSpring.LicenseFileStorage.

◆ LoadLicense()

override string LicenseSpring.LicenseFileStorageEx.LoadLicense ( )
virtual

Load license from file.

Returns
Ecrypted license data

Reimplemented from LicenseSpring.LicenseFileStorage.

◆ SaveLicense()

override void LicenseSpring.LicenseFileStorageEx.SaveLicense ( string  licenseData)
virtual

Saves given license data string to the file.

Parameters
licenseDataLicense data string

Reimplemented from LicenseSpring.LicenseFileStorage.

Property Documentation

◆ MutexName

string LicenseSpring.LicenseFileStorageEx.MutexName
getset

Mutex name for Interprocess Synchronization.

Default MutexName is "Global\\" + Normalized( LicenseFilePath() )

◆ WaitTimeout

int LicenseSpring.LicenseFileStorageEx.WaitTimeout
getset

Mutex wait timeout in milliseconds.

Default timeout is 5 seconds (5000 ms)


The documentation for this class was generated from the following file: