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
Name | Description |
---|---|
| The listener. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are null. |
Detach(IObjectListener)
Detaches the given listener.
Parameters
Name | Description |
---|---|
| The listener. |
Exceptions
Name | Description |
---|---|
Thrown when one or more required arguments are null. |
Notify(params object[])
Notifies registered listeners.
Parameters
Name | Description |
---|---|
| A variable-length parameters list containing arguments. |
Validate(ILicenseContext, Type, object)
Validates the current restriction object.
Parameters
Name | Description |
---|---|
| The license context. |
| The for which the restriction is validated. |
| The instance. |
Returns
Name | Description |
---|---|
The validation result code . |
Last updated