LicenseSpring .Net SDK 7.22.0
Easily add Software Licensing to your application
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 More...
 
 LicenseFileStorageEx ()
 LicenseFileStorageEx constructor
 
 LicenseFileStorageEx (string licenseFilePath=null)
 LicenseFileStorageEx constructor More...
 
override string LoadLicense ()
 Load license from file More...
 
override void SaveLicense (string licenseData)
 Saves given license data string to the file More...
 
- Public Member Functions inherited from LicenseSpring.LicenseFileStorage
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...
 

Properties

string MutexName [get, set]
 Mutex name for Interprocess Synchronization More...
 
int WaitTimeout [get, set]
 Mutex wait timeout in milliseconds More...
 
- Properties inherited from LicenseSpring.LicenseFileStorage
string LicenseFileName [get, set]
 License filename with extension (optional) More...
 
string LicenseFolderPath [get, set]
 Folder path where License file is being stored More...
 

Additional Inherited Members

- Protected Member Functions inherited from LicenseSpring.LicenseFileStorage
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...
 

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

Reimplemented from LicenseSpring.LicenseFileStorage.

◆ SaveLicense()

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

Saves given license data string to the file

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: