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

Service to validate, store and remove licenses for software products.
상속: ILicenseService
파일 보기 프로젝트 열기: WildGums/Orc.LicenseManager

공개 메소드들

메소드 설명
LicenseExists ( LicenseMode licenseMode = LicenseMode.CurrentUser ) : bool

Check if the license exists.

LicenseService ( ILicenseLocationService licenseLocationService ) : System

Initializes a new instance of the LicenseService class.

LoadLicense ( LicenseMode licenseMode = LicenseMode.CurrentUser ) : string

Loads the license.

LoadXmlFromLicense ( string license ) : List

Loads the XML out of license.

RemoveLicense ( LicenseMode licenseMode = LicenseMode.CurrentUser ) : void

Removes the license if exists.

SaveLicense ( string license, LicenseMode licenseMode = LicenseMode.CurrentUser ) : void

Saves the license.

메소드 상세

LicenseExists() 공개 메소드

Check if the license exists.
public LicenseExists ( LicenseMode licenseMode = LicenseMode.CurrentUser ) : bool
licenseMode LicenseMode
리턴 bool

LicenseService() 공개 메소드

Initializes a new instance of the LicenseService class.
public LicenseService ( ILicenseLocationService licenseLocationService ) : System
licenseLocationService ILicenseLocationService The application identifier service.
리턴 System

LoadLicense() 공개 메소드

Loads the license.
public LoadLicense ( LicenseMode licenseMode = LicenseMode.CurrentUser ) : string
licenseMode LicenseMode
리턴 string

LoadXmlFromLicense() 공개 메소드

Loads the XML out of license.
public LoadXmlFromLicense ( string license ) : List
license string The license.
리턴 List

RemoveLicense() 공개 메소드

Removes the license if exists.
public RemoveLicense ( LicenseMode licenseMode = LicenseMode.CurrentUser ) : void
licenseMode LicenseMode
리턴 void

SaveLicense() 공개 메소드

Saves the license.
The is null or whitespace.
public SaveLicense ( string license, LicenseMode licenseMode = LicenseMode.CurrentUser ) : void
license string The license key that will be saved to Catel.IO.Path.GetApplicationDataDirectory .
licenseMode LicenseMode
리턴 void