BusinessEventMaskTBusinessEvent Class |
Namespace: Aloe.SystemFrameworks.Domain.BusinessLogic
public class BusinessEventMask<TBusinessEvent> : IBusinessEventMask where TBusinessEvent : BusinessEvent
The BusinessEventMaskTBusinessEvent type exposes the following members.
Name | Description | |
---|---|---|
![]() | BusinessEventMaskTBusinessEvent | Initializes a new instance of the BusinessEventMaskTBusinessEvent class |
Name | Description | |
---|---|---|
![]() | IsMatchedBy |
Determines whether the current event mask is matched by the specified actual event.
|
![]() | ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) |
The BusinessEventMaskTBusinessEvent class is used to represent an event mask. The event masks are used in BusinessEventHandler to match the registration of a BusinessRule to an actual BusinessEvent.
The matching of an event to event mask is done through a call to IsMatchedBy(BusinessEvent). The default implementation simply determines whether the actual event is of the type, supported by the mask. Descendant classes of BusinessEventMaskTBusinessEvent can perform more complicated matching algorithms (usually based on additional event and event mask parameters).