public abstract void HandleEvent(object sender, RepositoryEventArgs e);
public void FireEvent(object sender, RepositoryEventArgs args) { var eventHandlers = FindEventHandlerNodes(args.ContextNode); base.Fire <RepositoryEventHandler, RepositoryEventArgs>(eventHandlers, sender, args); }
private void InvokeEventHandler(RepositoryEventHandler eventHandler, object sender, RepositoryEventArgs args, out bool cancel) { eventHandler.HandleEvent(sender, args); cancel = false; }
//======================================================================================== private void RouteEvent(RepositoryEvent @event, object sender, Node contextNode) { var args = new RepositoryEventArgs(contextNode); @event.FireEvent(sender, args); }