C# Класс ServiceStack.LicenseUtils

Internal Utilities to verify licensing
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
LicenseUtils ( ) : System

Описание методов

ActivatedLicenseFeatures() публичный статический Метод

public static ActivatedLicenseFeatures ( ) : LicenseFeature
Результат LicenseFeature

ApprovedUsage() публичный статический Метод

public static ApprovedUsage ( LicenseFeature licenseFeature, LicenseFeature requestedFeature, int allowedUsage, int actualUsage, string message ) : void
licenseFeature LicenseFeature
requestedFeature LicenseFeature
allowedUsage int
actualUsage int
message string
Результат void

AssertEvaluationLicense() публичный статический Метод

public static AssertEvaluationLicense ( ) : void
Результат void

AssertValidUsage() публичный статический Метод

public static AssertValidUsage ( LicenseFeature feature, QuotaType quotaType, int count ) : void
feature LicenseFeature
quotaType QuotaType
count int
Результат void

GetHashKeyToSign() публичный статический Метод

public static GetHashKeyToSign ( this key ) : string
key this
Результат string

GetInnerMostException() публичный статический Метод

public static GetInnerMostException ( this ex ) : Exception
ex this
Результат System.Exception

GetLicensedFeatures() публичный статический Метод

public static GetLicensedFeatures ( this key ) : LicenseFeature
key this
Результат LicenseFeature

HasLicensedFeature() публичный статический Метод

public static HasLicensedFeature ( LicenseFeature feature ) : bool
feature LicenseFeature
Результат bool

Init() публичный статический Метод

public static Init ( ) : void
Результат void

RegisterLicense() публичный статический Метод

public static RegisterLicense ( string licenseKeyText ) : void
licenseKeyText string
Результат void

RemoveLicense() публичный статический Метод

public static RemoveLicense ( ) : void
Результат void

ToLicenseKey() публичный статический Метод

public static ToLicenseKey ( this licenseKeyText ) : LicenseKey
licenseKeyText this
Результат LicenseKey