C# Class Orc.LicenseManager.Services.LicenseValidationService

Inheritance: ILicenseValidationService
Afficher le fichier Open project: WildGums/Orc.LicenseManager

Méthodes publiques

Méthode Description
LicenseValidationService ( IApplicationIdService applicationIdService, IExpirationBehavior expirationBehavior, IIdentificationService identificationService, IMachineLicenseValidationService machineLicenseValidationService ) : System

Initializes a new instance of the LicenseValidationService class.

ValidateLicense ( string license ) : IValidationContext

Validates the license.

ValidateLicenseOnServer ( string license, string serverUrl, Assembly assembly = null ) : LicenseValidationResult

Validates the license on the server.

ValidateXml ( string license ) : IValidationContext

Validates the XML

Method Details

LicenseValidationService() public méthode

Initializes a new instance of the LicenseValidationService class.
public LicenseValidationService ( IApplicationIdService applicationIdService, IExpirationBehavior expirationBehavior, IIdentificationService identificationService, IMachineLicenseValidationService machineLicenseValidationService ) : System
applicationIdService IApplicationIdService The application identifier service.
expirationBehavior IExpirationBehavior The expiration behavior.
identificationService IIdentificationService The identification service.
machineLicenseValidationService IMachineLicenseValidationService The machine license validation service.
Résultat System

ValidateLicense() public méthode

Validates the license.
public ValidateLicense ( string license ) : IValidationContext
license string The license key the user has given to be validated.
Résultat IValidationContext

ValidateLicenseOnServer() public méthode

Validates the license on the server.
public ValidateLicenseOnServer ( string license, string serverUrl, Assembly assembly = null ) : LicenseValidationResult
license string The license.
serverUrl string The server URL.
assembly System.Reflection.Assembly The assembly to get the information from. If null, the entry assembly will be used.
Résultat LicenseValidationResult

ValidateXml() public méthode

Validates the XML
The is null or whitespace. The license text is not valid XML. The root element is not License. There were no inner nodes found.
public ValidateXml ( string license ) : IValidationContext
license string The license.
Résultat IValidationContext