C# Class ServiceStack.LicenseUtils

Internal Utilities to verify licensing
显示文件 Open project: ServiceStack/ServiceStack.Text Class Usage Examples

Public Methods

Method Description
ActivatedLicenseFeatures ( ) : LicenseFeature
ApprovedUsage ( LicenseFeature licenseFeature, LicenseFeature requestedFeature, int allowedUsage, int actualUsage, string message ) : void
AssertEvaluationLicense ( ) : void
AssertValidUsage ( LicenseFeature feature, QuotaType quotaType, int count ) : void
GetHashKeyToSign ( this key ) : string
GetInnerMostException ( this ex ) : Exception
GetLicensedFeatures ( this key ) : LicenseFeature
HasLicensedFeature ( LicenseFeature feature ) : bool
Init ( ) : void
RegisterLicense ( string licenseKeyText ) : void
RemoveLicense ( ) : void
ToLicenseKey ( this licenseKeyText ) : LicenseKey

Private Methods

Method Description
LicenseUtils ( ) : System

Method Details

ActivatedLicenseFeatures() public static method

public static ActivatedLicenseFeatures ( ) : LicenseFeature
return LicenseFeature

ApprovedUsage() public static method

public static ApprovedUsage ( LicenseFeature licenseFeature, LicenseFeature requestedFeature, int allowedUsage, int actualUsage, string message ) : void
licenseFeature LicenseFeature
requestedFeature LicenseFeature
allowedUsage int
actualUsage int
message string
return void

AssertEvaluationLicense() public static method

public static AssertEvaluationLicense ( ) : void
return void

AssertValidUsage() public static method

public static AssertValidUsage ( LicenseFeature feature, QuotaType quotaType, int count ) : void
feature LicenseFeature
quotaType QuotaType
count int
return void

GetHashKeyToSign() public static method

public static GetHashKeyToSign ( this key ) : string
key this
return string

GetInnerMostException() public static method

public static GetInnerMostException ( this ex ) : Exception
ex this
return System.Exception

GetLicensedFeatures() public static method

public static GetLicensedFeatures ( this key ) : LicenseFeature
key this
return LicenseFeature

HasLicensedFeature() public static method

public static HasLicensedFeature ( LicenseFeature feature ) : bool
feature LicenseFeature
return bool

Init() public static method

public static Init ( ) : void
return void

RegisterLicense() public static method

public static RegisterLicense ( string licenseKeyText ) : void
licenseKeyText string
return void

RemoveLicense() public static method

public static RemoveLicense ( ) : void
return void

ToLicenseKey() public static method

public static ToLicenseKey ( this licenseKeyText ) : LicenseKey
licenseKeyText this
return LicenseKey