DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
RequestExtensions.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace Deveel.Data.Diagnostics {
4  public static class RequestExtensions {
5  public static void Route<TEvent>(this IRequest request, Action<TEvent> router)
6  where TEvent : class, IEvent {
7  request.Route(router, null);
8  }
9 
10  public static void Route<TEvent>(this IRequest request, Action<TEvent> router, Func<TEvent, bool> condition)
11  where TEvent : class, IEvent {
12  request.Context.Route(router, condition);
13  }
14  }
15 }
This is an event occurred during the lifetime of a database.
Definition: IEvent.cs:24