LicenseServices
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
Provides a way to register and obtain a list of services to support licensing. This class cannot be inherited.
Inheritance
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Fields
Current
The LicenseServices singleton.
Field Value
Properties
LicenseContext
Gets or sets a license context.
Property Value
RegisteredServiceTypes
Gets the list of registered service types.
Property Value
Methods
AddService(Type, object)
Adds the specified service to the internal collection of services.
Parameters
The type of the service to add.
The service object instance to add.
Exceptions
Thrown when one or more required arguments are null.
GetService(Type)
Gets type-based services from the license service provider.
Parameters
An object that specifies the type of service object to get.
Returns
The requested service, or a null reference (Nothing in Visual Basic) if the service could not be located.
Remarks
The return value of GetService must be cast to the interface type.
GetService<T>()
Gets type-based services from the license service provider.
Returns
Type Parameters
T
The type of service object to get.
GetService(string)
Gets type-based services from the license service provider.
Parameters
The full type name of service object to get.
Returns
The requested service, or a null reference (Nothing in Visual Basic) if the service could not be located
Remarks
The return value of GetService must be cast to the interface type.
Last updated