BabelLicenseContext
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
An abstract base class for license context.
Inheritance
Implements
ILicenseContext, ILicenseServiceProvider
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
BabelLicenseContext()
Default constructor.
Properties
ContextName
Gets the name of the context.
Property Value
FallbackContext
Gets or sets a fallback license context. The fallback context will be used in search for license services when the required service is not found in the present context.
Property Value
Settings
Gets or sets license context options.
Property Value
Methods
ClearLicenseKeys()
Clear stored license keys.
GetService(Type)
Provides a license service for the given type.
Parameters
Type of the service.
Returns
The service.
IsContextValid(Type)
Query if a context is valid for the given type. If the context is not valid the license will be reloaded inside the context.
Parameters
The type.
Returns
true if the context is valid, false if not.
LoadLicenseKey(Type)
Loads license key.
Parameters
The type.
Returns
The license key.
Exceptions
Thrown when one or more required arguments are null.
SaveLicenseKey(Type, string)
Saves a license key.
Parameters
The type.
The key.
Exceptions
Thrown when one or more required arguments are null.
Last updated