Class LicenseCheck
Inheritance
System.Object
LicenseCheck
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: EPiServer.Licensing.dll
Version: 11.20.7
Syntax
public abstract class LicenseCheck
Constructors
LicenseCheck(Func<Boolean>)
Declaration
public LicenseCheck(Func<bool> skipLicenseCheck)
Parameters
Type |
Name |
Description |
System.Func<System.Boolean> |
skipLicenseCheck |
|
LicenseCheck(Func<Boolean>, LicensedAppDomainDetection)
Declaration
public LicenseCheck(Func<bool> skipLicenseCheck, LicensedAppDomainDetection licensedAppDomainDetection)
Parameters
Fields
SyncLock
Declaration
protected static object SyncLock
Field Value
Type |
Description |
System.Object |
|
Properties
CloudLicenseRuntime
Declaration
protected virtual CloudLicenseRuntime CloudLicenseRuntime { get; set; }
Property Value
IsCommercialLicense
Declaration
public virtual bool IsCommercialLicense { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsFileBased
Declaration
public virtual bool IsFileBased { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsLicenseValid
Declaration
public virtual bool IsLicenseValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
LicenseFilePath
Declaration
public string LicenseFilePath { get; protected set; }
Property Value
Type |
Description |
System.String |
|
LicenseNumber
Declaration
public virtual string LicenseNumber { get; }
Property Value
Type |
Description |
System.String |
|
Methods
CreateLicenseCheck(Func<Boolean>, String, Assembly)
Declaration
public static LicenseCheck CreateLicenseCheck(Func<bool> skipLicenseCheck, string licenseFilePath, Assembly licensedAssembly)
Parameters
Type |
Name |
Description |
System.Func<System.Boolean> |
skipLicenseCheck |
|
System.String |
licenseFilePath |
|
System.Reflection.Assembly |
licensedAssembly |
|
Returns
HandleLicenseException(LicenseException)
Declaration
protected virtual void HandleLicenseException(LicenseException le)
Parameters
HasAccessKey()
Declaration
public static bool HasAccessKey()
Returns
Type |
Description |
System.Boolean |
|
LicenseInfo()
Declaration
public virtual string LicenseInfo()
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string LicenseMetaDataUnsafe(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.String |
|
Run()
Declaration
public abstract void Run()
Test()
Declaration
public virtual bool Test()
Returns
Type |
Description |
System.Boolean |
|
ValidateLicense(Boolean)
Declaration
public abstract bool ValidateLicense(bool throwOnError)
Parameters
Type |
Name |
Description |
System.Boolean |
throwOnError |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods