DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | List of all members
Deveel.Data.Sql.Triggers.TriggerEventRouter Class Reference
Inheritance diagram for Deveel.Data.Sql.Triggers.TriggerEventRouter:
Deveel.Data.Diagnostics.IEventRouter

Public Member Functions

 TriggerEventRouter (ISystemContext systemContext)
 
bool CanRoute (IEvent @event)
 
void RouteEvent (IEvent e)
 Routes the input event to the final destination. More...
 

Properties

ISystemContext SystemContext [get, private set]
 

Detailed Description

Definition at line 23 of file TriggerEventRouter.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Triggers.TriggerEventRouter.TriggerEventRouter ( ISystemContext  systemContext)
inline

Definition at line 24 of file TriggerEventRouter.cs.

24  {
25  if (systemContext == null)
26  throw new ArgumentNullException("systemContext");
27 
28  SystemContext = systemContext;
29  }

Member Function Documentation

bool Deveel.Data.Sql.Triggers.TriggerEventRouter.CanRoute ( IEvent event)
inline

Implements Deveel.Data.Diagnostics.IEventRouter.

Definition at line 33 of file TriggerEventRouter.cs.

33  {
34  return @event is TriggerEvent;
35  }
void Deveel.Data.Sql.Triggers.TriggerEventRouter.RouteEvent ( IEvent  e)
inline

Routes the input event to the final destination.

Parameters
eThe system event to be routed.

Implements Deveel.Data.Diagnostics.IEventRouter.

Definition at line 37 of file TriggerEventRouter.cs.

37  {
38  var triggerEvent = (TriggerEvent) e;
39 
40  var listeners = SystemContext.ResolveAllServices<ITriggerListener>();
41  foreach (var listener in listeners) {
42  listener.OnTriggerEvent(triggerEvent);
43  }
44  }

Property Documentation

ISystemContext Deveel.Data.Sql.Triggers.TriggerEventRouter.SystemContext
getprivate set

Definition at line 31 of file TriggerEventRouter.cs.


The documentation for this class was generated from the following file: