C# Класс Rhino.Licensing.AbstractLicenseValidator

Base license validator.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
Log log4net.ILog
TimeServers string[]

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

Метод Описание
AssertValidLicense ( ) : void

Validates loaded license

DisableFutureChecks ( ) : void

Disables further license checks for the session.

RemoveExistingLicense ( ) : void

Removes existing license from the machine.

TryLoadingLicenseValuesFromValidatedXml ( ) : bool

Loads license data from validated license file.

Защищенные методы

Метод Описание
AbstractLicenseValidator ( string publicKey, bool enableDiscovery = true ) : System

Creates a license validator with specfied public key.

AbstractLicenseValidator ( string publicKey, string licenseServerUrl, System.Guid clientId ) : System

Creates a license validator using the client information and a service endpoint address to validate the license.

TryOverwritingWithNewLicense ( string newLicense ) : bool

Loads the license file.

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

Метод Описание
DiscoveryHostOnClientDiscovered ( object sender, Rhino.Licensing.Discovery.DiscoveryHost clientDiscoveredEventArgs ) : void
HasExistingLicense ( ) : bool
LeaseLicenseAgain ( object state ) : void
RaiseLicenseInvalidated ( ) : void
RaiseMultipleLicenseDiscovered ( Rhino.Licensing.Discovery.DiscoveryHost args ) : void
TryGetValidDocument ( string licensePublicKey, XmlDocument doc ) : bool
TryGettingNewLeaseSubscription ( ) : void
ValidateFloatingLicense ( string publicKeyOfFloatingLicense ) : bool
ValidateSubscription ( ) : bool
ValidateUsingNetworkTime ( ) : void
ValidateWithoutUsingSubscriptionLeasing ( ) : bool
ValidateXmlDocumentLicense ( XmlDocument doc ) : bool

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

AbstractLicenseValidator() защищенный Метод

Creates a license validator with specfied public key.
protected AbstractLicenseValidator ( string publicKey, bool enableDiscovery = true ) : System
publicKey string public key
enableDiscovery bool Whether to enable the client discovery server to detect duplicate licenses used on the same network.
Результат System

AbstractLicenseValidator() защищенный Метод

Creates a license validator using the client information and a service endpoint address to validate the license.
protected AbstractLicenseValidator ( string publicKey, string licenseServerUrl, System.Guid clientId ) : System
publicKey string
licenseServerUrl string
clientId System.Guid
Результат System

AssertValidLicense() публичный Метод

Validates loaded license
public AssertValidLicense ( ) : void
Результат void

DisableFutureChecks() публичный Метод

Disables further license checks for the session.
public DisableFutureChecks ( ) : void
Результат void

RemoveExistingLicense() публичный Метод

Removes existing license from the machine.
public RemoveExistingLicense ( ) : void
Результат void

TryLoadingLicenseValuesFromValidatedXml() публичный Метод

Loads license data from validated license file.
public TryLoadingLicenseValuesFromValidatedXml ( ) : bool
Результат bool

TryOverwritingWithNewLicense() защищенный Метод

Loads the license file.
protected TryOverwritingWithNewLicense ( string newLicense ) : bool
newLicense string
Результат bool

Описание свойств

Log защищенное статическое свойство

License validator logger
protected static ILog,log4net Log
Результат log4net.ILog

TimeServers защищенное статическое свойство

Standard Time servers
protected static string[] TimeServers
Результат string[]