C# 클래스 Orc.LicenseManager.Services.LicenseValidationService

상속: ILicenseValidationService
파일 보기 프로젝트 열기: WildGums/Orc.LicenseManager

공개 메소드들

메소드 설명
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

메소드 상세

LicenseValidationService() 공개 메소드

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.
리턴 System

ValidateLicense() 공개 메소드

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

ValidateLicenseOnServer() 공개 메소드

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.
리턴 LicenseValidationResult

ValidateXml() 공개 메소드

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.
리턴 IValidationContext