C# Class Orc.LicenseManager.Services.SimpleLicenseService

Simple license service.
Inheritance: ISimpleLicenseService
Afficher le fichier Open project: WildGums/Orc.LicenseManager

Méthodes publiques

Méthode 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

Méthode Description
EnsureLicenseExists ( ) : bool

Method Details

SimpleLicenseService() public méthode

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.
Résultat System

Validate() public méthode

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
Résultat bool

ValidateOnServer() public méthode

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.
Résultat bool