Definition at line 20 of file ContextExtensions.cs.
static void Deveel.Data.Diagnostics.ContextExtensions.AttachRouter |
( |
this IContext |
context, |
|
|
IEventRouter |
router |
|
) |
| |
|
inlinestatic |
Definition at line 33 of file ContextExtensions.cs.
34 var currentContext = context;
35 while (currentContext != null) {
36 if (currentContext is IEventScope) {
37 currentContext.RegisterInstance(router);
41 currentContext = currentContext.Parent;
static void Deveel.Data.Diagnostics.ContextExtensions.RegisterEvent |
( |
this IContext |
context, |
|
|
IEvent @ |
event |
|
) |
| |
|
inlinestatic |
Definition at line 21 of file ContextExtensions.cs.
22 var currentContext = context;
23 while (currentContext != null) {
24 if (currentContext is IEventScope) {
25 var scope = (IEventScope) currentContext;
26 scope.EventRegistry.RegisterEvent(@event);
29 currentContext = currentContext.Parent;
static void Deveel.Data.Diagnostics.ContextExtensions.Route< TEvent > |
( |
this IContext |
context, |
|
|
Action< TEvent > |
router |
|
) |
| |
|
inlinestatic |
- Type Constraints
-
TEvent | : | class | |
TEvent | : | IEvent | |
Definition at line 45 of file ContextExtensions.cs.
47 context.Route(router, null);
static void Deveel.Data.Diagnostics.ContextExtensions.Route< TEvent > |
( |
this IContext |
context, |
|
|
Action< TEvent > |
router, |
|
|
Func< TEvent, bool > |
condition |
|
) |
| |
|
inlinestatic |
- Type Constraints
-
TEvent | : | class | |
TEvent | : | IEvent | |
Definition at line 50 of file ContextExtensions.cs.
52 context.AttachRouter(
new DelegateRouter<TEvent>(router, condition));
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Diagnostics/ContextExtensions.cs