Restriction
Namespace: Babel.Licensing Assembly: Babel.Licensing.dll
Defines a base class for a license restriction.
Inheritance
Derived
BetaRestriction, DomainRestriction, HardwareRestriction, TrialRestriction, UsageRestriction
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Restriction()
Default constructor for use only by derived class.
Properties
ExpireDate
Gets or sets the expire date after which the license is no longer valid.
Property Value
Id
Gets or sets the restriction identifier.
Property Value
License
Get the parent license
Property Value
Listeners
Gets the listeners.
Property Value
Name
Gets the restriction name.
Property Value
Methods
Attach(IObjectListener)
Attaches the given listener.
Parameters
listener
IObjectListener
The listener.
Exceptions
Thrown when one or more required arguments are null.
Detach(IObjectListener)
Detaches the given listener.
Parameters
listener
IObjectListener
The listener.
Exceptions
Thrown when one or more required arguments are null.
Notify(params object[])
Notifies registered listeners.
Parameters
args
object[]
A variable-length parameters list containing arguments.
Validate(ILicenseContext, Type, object)
Validates the current restriction object.
Parameters
context
ILicenseContext
The license context.
type
Type
The for which the restriction is validated.
instance
object
The instance.
Returns
The validation result code .
Last updated