DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Classes | Static Public Member Functions | List of all members
Deveel.Data.Sql.Triggers.SystemContextExtensions Class Reference

Classes

class  DelegatedTriggerListener
 

Static Public Member Functions

static void UseTriggerListener (this ISystemContext context, ITriggerListener listener)
 
static void ListenTriggers (this ISystemContext context, Action< TriggerEvent > listener)
 

Detailed Description

Definition at line 23 of file SystemContextExtensions.cs.

Member Function Documentation

static void Deveel.Data.Sql.Triggers.SystemContextExtensions.ListenTriggers ( this ISystemContext  context,
Action< TriggerEvent listener 
)
inlinestatic

Definition at line 32 of file SystemContextExtensions.cs.

32  {
33  context.UseTriggerListener(new DelegatedTriggerListener(context, listener));
34  }
static void Deveel.Data.Sql.Triggers.SystemContextExtensions.UseTriggerListener ( this ISystemContext  context,
ITriggerListener  listener 
)
inlinestatic

Definition at line 24 of file SystemContextExtensions.cs.

24  {
25  var router = context.ResolveService<TriggerEventRouter>();
26  if (router == null)
27  context.RegisterService<TriggerEventRouter>();
28 
29  context.RegisterInstance(listener);
30  }

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