LicenseSpring Management .Net SDK 1.10.1
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
LicenseSpring.BaseService Class Referenceabstract

Base class for services. Implements IService interface. More...

Inheritance diagram for LicenseSpring.BaseService:
LicenseSpring.IService LicenseSpring.CustomerService LicenseSpring.DeviceService LicenseSpring.LicenseService LicenseSpring.OrderService LicenseSpring.ProductService

Public Member Functions

void Initialize (ManagementConfiguration configuration)
 Initialize management service with given configuration.
Parameters
configurationManagementConfiguration object to use
Exceptions
System.ArgumentNullExceptionThrown when configuration is null

 
bool IsInitialized ()
 Check whether management service has been initialized.
Returns
True if management service has been initialized and ready to use or false otherwise

 
bool IsOnline (bool throwExceptions=false)
 Helper method, it checks connection to the LicenseSpring platform.
Parameters
throwExceptionsBoolean value indicating whether this method should throw exceptions, by default it's false.
Returns
True if SDK is able to connect to the LicenseSpring platform and false otherwise.
Exceptions
System.InvalidOperationExceptionThrown when license manager is not initialized
LicenseSpring.NetworkExceptionIn case of network errors, e.g. no Internet connection or operation timed out.

 

Detailed Description

Base class for services. Implements IService interface.

Member Function Documentation

◆ Initialize()

void LicenseSpring.BaseService.Initialize ( ManagementConfiguration  configuration)

Initialize management service with given configuration.

Parameters
configurationManagementConfiguration object to use
Exceptions
System.ArgumentNullExceptionThrown when configuration is null

Implements LicenseSpring.IService.

◆ IsInitialized()

bool LicenseSpring.BaseService.IsInitialized ( )

Check whether management service has been initialized.

Returns
True if management service has been initialized and ready to use or false otherwise

Implements LicenseSpring.IService.

◆ IsOnline()

bool LicenseSpring.BaseService.IsOnline ( bool  throwExceptions = false)

Helper method, it checks connection to the LicenseSpring platform.

Parameters
throwExceptionsBoolean value indicating whether this method should throw exceptions, by default it's false.
Returns
True if SDK is able to connect to the LicenseSpring platform and false otherwise.
Exceptions
System.InvalidOperationExceptionThrown when license manager is not initialized
LicenseSpring.NetworkExceptionIn case of network errors, e.g. no Internet connection or operation timed out.

Implements LicenseSpring.IService.


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