LicenseSpring .Net SDK 7.22.0
Easily add Software Licensing to your application
LicenseSpring.ILicenseStorage Interface Reference

LicenseStorage interface More...

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

Public Member Functions

void Clear ()
 Removes local license data More...
 
string LoadLicense ()
 Load license data More...
 
void SaveLicense (string licenseData)
 Save license data somewhere More...
 

Detailed Description

LicenseStorage interface

You can implement this interface to provide your custom license storage logic. For example to store license in your DB, Windows registry, remotely etc.

Member Function Documentation

◆ Clear()

void LicenseSpring.ILicenseStorage.Clear ( )

◆ LoadLicense()

string LicenseSpring.ILicenseStorage.LoadLicense ( )

Load license data

Return null if license does not exists. You can throw any appropriate exception in case of errors, it will be wrapped into LocalLicenseException and propagated further.

Returns
Encrypted license data string

Implemented in LicenseSpring.LicenseMemoryStorage, LicenseSpring.LicenseFileStorage, and LicenseSpring.LicenseFileStorageEx.

◆ SaveLicense()

void LicenseSpring.ILicenseStorage.SaveLicense ( string  licenseData)

Save license data somewhere

Parameters
licenseDataEncrypted license data string

You can throw any appropriate exception in case of errors, it will be wrapped into LocalLicenseException and propagated further.

Implemented in LicenseSpring.LicenseMemoryStorage, LicenseSpring.LicenseFileStorage, and LicenseSpring.LicenseFileStorageEx.


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