C# Class Rhino.Licensing.AbstractLicenseValidator

Base license validator.
Inheritance: IDisposable
Exibir arquivo Open project: ayende/rhino-licensing Class Usage Examples

Protected Properties

Property Type Description
Log log4net.ILog
TimeServers string[]

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

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.
return System

AbstractLicenseValidator() protected method

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
return System

AssertValidLicense() public method

Validates loaded license
public AssertValidLicense ( ) : void
return void

DisableFutureChecks() public method

Disables further license checks for the session.
public DisableFutureChecks ( ) : void
return void

RemoveExistingLicense() public method

Removes existing license from the machine.
public RemoveExistingLicense ( ) : void
return void

TryLoadingLicenseValuesFromValidatedXml() public method

Loads license data from validated license file.
public TryLoadingLicenseValuesFromValidatedXml ( ) : bool
return bool

TryOverwritingWithNewLicense() protected method

Loads the license file.
protected TryOverwritingWithNewLicense ( string newLicense ) : bool
newLicense string
return bool

Property Details

Log protected_oe static_oe property

License validator logger
protected static ILog,log4net Log
return log4net.ILog

TimeServers protected_oe static_oe property

Standard Time servers
protected static string[] TimeServers
return string[]