private static void ExecuteEventProcessEvent(object eventKey, MethodInfo method, ICustomAttribute[] attributes) { AjaxEventArgs e = new AjaxEventArgs(method, attributes); AjaxProcessEventHandler handler = events[eventKey] as AjaxProcessEventHandler; if (handler != null) { handler(e); } }
/// <summary> /// Raises all BeforeProcessRequest events. These events are raised before a method is executed /// </summary> public static void BeforeProcessRequest(MethodInfo method, ICustomAttribute[] attributes) { Events.ExecuteEventProcessEvent(EventPreProcessRequest, method, attributes); }