C# Class ServiceStack.LicenseUtils

Internal Utilities to verify licensing
Afficher le fichier Open project: ServiceStack/ServiceStack.Text Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
LicenseUtils ( ) : System

Method Details

ActivatedLicenseFeatures() public static méthode

public static ActivatedLicenseFeatures ( ) : LicenseFeature
Résultat LicenseFeature

ApprovedUsage() public static méthode

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

AssertEvaluationLicense() public static méthode

public static AssertEvaluationLicense ( ) : void
Résultat void

AssertValidUsage() public static méthode

public static AssertValidUsage ( LicenseFeature feature, QuotaType quotaType, int count ) : void
feature LicenseFeature
quotaType QuotaType
count int
Résultat void

GetHashKeyToSign() public static méthode

public static GetHashKeyToSign ( this key ) : string
key this
Résultat string

GetInnerMostException() public static méthode

public static GetInnerMostException ( this ex ) : Exception
ex this
Résultat System.Exception

GetLicensedFeatures() public static méthode

public static GetLicensedFeatures ( this key ) : LicenseFeature
key this
Résultat LicenseFeature

HasLicensedFeature() public static méthode

public static HasLicensedFeature ( LicenseFeature feature ) : bool
feature LicenseFeature
Résultat bool

Init() public static méthode

public static Init ( ) : void
Résultat void

RegisterLicense() public static méthode

public static RegisterLicense ( string licenseKeyText ) : void
licenseKeyText string
Résultat void

RemoveLicense() public static méthode

public static RemoveLicense ( ) : void
Résultat void

ToLicenseKey() public static méthode

public static ToLicenseKey ( this licenseKeyText ) : LicenseKey
licenseKeyText this
Résultat LicenseKey