![]() |
LicenseSpring .Net SDK 7.32.1
Easily add Software Licensing to your application
|
Class for interaction with offline Floating server. More...
Public Member Functions | |||||||||||||||||||||
FloatingClient () | |||||||||||||||||||||
Constructor of FloatingClient. | |||||||||||||||||||||
ILicense | GetLicenseInfo (LicenseID licenseId=null) | ||||||||||||||||||||
Get license information for configured product.See https://docs.licensespring.com/docs/apiv4floatinglicense | |||||||||||||||||||||
IFloatingServerInfo | GetServerInfo () | ||||||||||||||||||||
Get Floating Server information (settings)The function is obsolete | |||||||||||||||||||||
bool | IsOnline (bool throwExceptions=false) | ||||||||||||||||||||
Helper method, it checks connection to the Floating server.
| |||||||||||||||||||||
ILicense | Register (string id, LicenseID licenseId=null) | ||||||||||||||||||||
Register client with given id.
| |||||||||||||||||||||
bool | Unregister (string id, LicenseID licenseId=null) | ||||||||||||||||||||
Unregister client with given id.
| |||||||||||||||||||||
![]() | |||||||||||||||||||||
void | ClearLocalStorage () | ||||||||||||||||||||
Removes the license file, license log and folders created by the SDK. | |||||||||||||||||||||
ILicense | CurrentLicense () | ||||||||||||||||||||
Load license from local storage (if not yet loaded). | |||||||||||||||||||||
void | Initialize (Configuration configuration, ILicenseStorage storage=null) | ||||||||||||||||||||
Initialize license manager with the given configuration. | |||||||||||||||||||||
bool | IsInitialized () | ||||||||||||||||||||
Check whether license manager has been initialized. | |||||||||||||||||||||
string | LicenseFilePath () | ||||||||||||||||||||
Returns full path to the license file, meaningful only if LicenseFileStorage (or derived) is used. | |||||||||||||||||||||
ILicense | ReloadLicense () | ||||||||||||||||||||
Resets current license and loads it again from the local storage. | |||||||||||||||||||||
![]() | |||||||||||||||||||||
void | ClearLocalStorage () | ||||||||||||||||||||
See BaseManager.ClearLocalStorage. | |||||||||||||||||||||
ILicense | CurrentLicense () | ||||||||||||||||||||
See BaseManager.CurrentLicense. | |||||||||||||||||||||
void | Initialize (Configuration configuration, ILicenseStorage storage=null) | ||||||||||||||||||||
See BaseManager.Initialize. | |||||||||||||||||||||
bool | IsInitialized () | ||||||||||||||||||||
See BaseManager.IsInitialized. | |||||||||||||||||||||
string | LicenseFilePath () | ||||||||||||||||||||
See BaseManager.LicenseFilePath. | |||||||||||||||||||||
ILicense | ReloadLicense () | ||||||||||||||||||||
See BaseManager.ReloadLicense. | |||||||||||||||||||||
Static Public Member Functions | |
static IFloatingClient | GetInstance () |
Get singleton FloatingClient instance. | |
Additional Inherited Members | |
![]() | |
string | DataLocation [get, set] |
Folder path where LicenseSpring data is being stored. | |
string | LicenseFileName [get, set] |
License filename with extension (optional), meaningful only if LicenseFileStorage is used. | |
![]() | |
string | DataLocation [get, set] |
See BaseManager.DataLocation. | |
string | LicenseFileName [get, set] |
See BaseManager.LicenseFileName. | |
Class for interaction with offline Floating server.
LicenseSpring.FloatingClient.FloatingClient | ( | ) |
Constructor of FloatingClient.
You can rather use singleton instance by GetInstance or create object directly by this constructor.
|
static |
Get singleton FloatingClient instance.
Get license information for configured product.See https://docs.licensespring.com/docs/apiv4floatinglicense
Implements LicenseSpring.IFloatingClient.
IFloatingServerInfo LicenseSpring.FloatingClient.GetServerInfo | ( | ) |
Get Floating Server information (settings)The function is obsolete
Implements LicenseSpring.IFloatingClient.
bool LicenseSpring.FloatingClient.IsOnline | ( | bool | throwExceptions = false | ) |
Helper method, it checks connection to the Floating server.
throwExceptions | Boolean value indicating whether this method should throw exceptions, by default it's false. |
System.InvalidOperationException | Thrown when FloatingClient is not initialized |
LicenseSpring.NetworkException | In case of network errors or server not available. |
Implements LicenseSpring.IFloatingClient.
Register client with given id.
id | User or instance id for license registration, it can be anything - email, host or domain name, handle, etc. |
licenseID | License identifier, optional, if not specified this method tries to register to default license for the product. |
System.InvalidOperationException | Thrown when FloatingClient is not initialized |
LicenseSpring.MaxFloatingReachedException | In case there are no floating slots available |
LicenseSpring.ProductNotFoundException | In case product was not found on floating server |
LicenseSpring.LicenseNotFoundException | In case license was not found for configured product |
LicenseSpring.LicenseActivationException | In server returned empty response |
LicenseSpring.LicenseServerException | In case of internal Floating server error |
LicenseSpring.NetworkException | In case of network errors, e.g. no network connection or operation timed out. |
LicenseSpring.UnknownLicenseSpringException | If something went wrong or you use newer version of FloatingServer |
Implements LicenseSpring.IFloatingClient.
bool LicenseSpring.FloatingClient.Unregister | ( | string | id, |
LicenseID | licenseId = null |
||
) |
Unregister client with given id.
id | User or instance id for license registration, it can be anything - email, host or domain name, handle, etc. |
licenseID | License id, optional, if not specified this method unegister from default configured license for the product. |
System.InvalidOperationException | Thrown when FloatingClient is not initialized |
LicenseSpring.LicenseServerException | In case of internal Floating server error |
System.Security.Authentication.InvalidCredentialException | In case of wrong credential |
LicenseSpring.NetworkException | In case of network errors, e.g. no network connection or operation timed out. |
LicenseSpring.UnknownLicenseSpringException | In rare case if something went wrong |
Implements LicenseSpring.IFloatingClient.