BabelLicenseProvider

Namespace: Babel.Licensing Assembly: Babel.Licensing.dll

Provides the abstract base class for implementing a that is also compatible with

public abstract class BabelLicenseProvider : LicenseProvider, ILicenseProvider

Inheritance

objectLicenseProviderBabelLicenseProvider

Derived

FileLicenseProvider, RegistryLicenseProvider

Implements

ILicenseProvider

Inherited Members

LicenseProvider.GetLicense(LicenseContext, Type, object?, bool), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

BabelLicenseProvider()

protected BabelLicenseProvider()

Methods

GetLicense(ILicenseContext, Type, object)

When overridden in a derived class, gets a license for an instance or type of component, when given a context and whether the denial of a license throws an exception.

public abstract ILicense GetLicense(ILicenseContext context, Type type, object instance)

Parameters

NameDescription

A

type Type

A

instance object

An object that is requesting the license.

Returns

NameDescription

A valid for the specified context, type, and instance.

GetLicense(LicenseContext, Type, object, bool)

When overridden in a derived class, gets a license for an instance or type of component, when given a context and whether the denial of a license throws an exception.

public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions)

Parameters

NameDescription

A

type Type

A

instance object

An object that is requesting the license.

allowExceptions bool

true if a

Returns

NameDescription

A valid for the specified context, type, and instance.

Exceptions

NameDescription

Thrown when a License error condition occurs.

Last updated