C# Class Orc.LicenseManager.Services.SimpleLicenseService

Simple license service.
Inheritance: ISimpleLicenseService
Mostra file Open project: WildGums/Orc.LicenseManager

Public Methods

Method Description
SimpleLicenseService ( ILicenseService licenseService, ILicenseValidationService licenseValidationService, ILicenseVisualizerService licenseVisualizerService, IExpirationBehavior expirationBehavior ) : System

Initializes a new instance of the SimpleLicenseService class.

Validate ( ) : bool

Validates the license in a very simple manner. This method is wrapper around the ILicenseService.

Note that this method might show a dialog so must be run on the UI thread.

ValidateOnServer ( string serverUrl ) : bool

Validates the license on the server. This method is the same as Validate but also checks the server if the license is valid.

Private Methods

Method Description
EnsureLicenseExists ( ) : bool

Method Details

SimpleLicenseService() public method

Initializes a new instance of the SimpleLicenseService class.
The is null.
public SimpleLicenseService ( ILicenseService licenseService, ILicenseValidationService licenseValidationService, ILicenseVisualizerService licenseVisualizerService, IExpirationBehavior expirationBehavior ) : System
licenseService ILicenseService The license service.
licenseValidationService ILicenseValidationService The license validation service.
licenseVisualizerService ILicenseVisualizerService The license visualizer service.
expirationBehavior IExpirationBehavior The expiration behavior.
return System

Validate() public method

Validates the license in a very simple manner. This method is wrapper around the ILicenseService.
Note that this method might show a dialog so must be run on the UI thread.
public Validate ( ) : bool
return bool

ValidateOnServer() public method

Validates the license on the server. This method is the same as Validate but also checks the server if the license is valid.
public ValidateOnServer ( string serverUrl ) : bool
serverUrl string The server URL.
return bool