Click or drag to resize

ValidationEvent Class

Represents the actual occurrence of a validation event (like Commit, ChangeState, etc).
Inheritance Hierarchy

Namespace:  Aloe.SystemFrameworks.Domain.Validation
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public abstract class ValidationEvent : BusinessEvent

The ValidationEvent type exposes the following members.

Constructors
  NameDescription
Public methodValidationEvent
Initializes a new instance of the ValidationEvent class.
Top
Properties
  NameDescription
Public propertyStatic memberAggregateCommitMask
Gets the aggregate commit mask.
Public propertyStatic memberCommitMask
Gets the commit validation event mask.
Public propertyExtendedAttributes
Gets the extended attributes. They store temporary custom event handlers data in name/value format.
(Inherited from BusinessEvent.)
Public propertyValidationViolations
Gets the validation violations list.
(Inherited from BusinessEvent.)
Top
Methods
  NameDescription
Public methodStatic memberCreateAggregateCommitEvent
Creates a new aggregate commit event.
Public methodStatic memberCreateCommitEvent
Creates a new commit event.
Public methodGetEventAttributes
Gets the event specific attributes. For example for attribute change event this should be $OldValue, $NewValue etc. Event attributes always start with $.
(Inherited from BusinessEvent.)
Public methodGetEventAttributeValue
Gets the event attribute value.
(Inherited from BusinessEvent.)
Public methodGetViolationsMessage
Gets the concatenated messages of all violations.
(Inherited from BusinessEvent.)
Public methodThrowExceptionIfViolations
Checks for violations. If there are violations, throws an aggregate exception for all violations.
(Inherited from BusinessEvent.)
Public methodToString
Returns a String that represents this instance.
(Inherited from BusinessEvent.)
Top
Remarks
The validation event is a special type of business event, occurring when the system needs to validate an object. The validation is performed by executing all registered business rules. The validation rules are a type of business rules, which do not modify the transaction, but rather modify the validation event itself. Each rule checks the object and if it is not valid, adds a violation to the ValidationViolations collection. After completing the event processing, the event instance contains all the violations.
See Also