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

Simple license service.
상속: ISimpleLicenseService
파일 보기 프로젝트 열기: WildGums/Orc.LicenseManager

공개 메소드들

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

비공개 메소드들

메소드 설명
EnsureLicenseExists ( ) : bool

메소드 상세

SimpleLicenseService() 공개 메소드

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

Validate() 공개 메소드

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
리턴 bool

ValidateOnServer() 공개 메소드

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