C# Class Rhino.Licensing.AbstractLicenseValidator

Base license validator.
Inheritance: IDisposable
Afficher le fichier Open project: ayende/rhino-licensing Class Usage Examples

Protected Properties

Свойство Type Description
Log log4net.ILog
TimeServers string[]

Méthodes publiques

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

Méthodes protégées

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

Private Methods

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

Method Details

AbstractLicenseValidator() protected méthode

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.
Résultat System

AbstractLicenseValidator() protected méthode

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
Résultat System

AssertValidLicense() public méthode

Validates loaded license
public AssertValidLicense ( ) : void
Résultat void

DisableFutureChecks() public méthode

Disables further license checks for the session.
public DisableFutureChecks ( ) : void
Résultat void

RemoveExistingLicense() public méthode

Removes existing license from the machine.
public RemoveExistingLicense ( ) : void
Résultat void

TryLoadingLicenseValuesFromValidatedXml() public méthode

Loads license data from validated license file.
public TryLoadingLicenseValuesFromValidatedXml ( ) : bool
Résultat bool

TryOverwritingWithNewLicense() protected méthode

Loads the license file.
protected TryOverwritingWithNewLicense ( string newLicense ) : bool
newLicense string
Résultat bool

Property Details

Log protected_oe static_oe property

License validator logger
protected static ILog,log4net Log
Résultat log4net.ILog

TimeServers protected_oe static_oe property

Standard Time servers
protected static string[] TimeServers
Résultat string[]