C# Class Orc.LicenseManager.Services.LicenseValidationService

Inheritance: ILicenseValidationService
Mostra file Open project: WildGums/Orc.LicenseManager

Public Methods

Method 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 method

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.
return System

ValidateLicense() public method

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

ValidateLicenseOnServer() public method

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.
return LicenseValidationResult

ValidateXml() public method

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.
return IValidationContext