public void Execute(Events.IEventContext context, TestEvent1 e) { Console.WriteLine(System.Threading.Thread.CurrentThread.ManagedThreadId); Console.WriteLine("e_1_one"); //context.AddCommand(new TestCommand()); }
public void Execute(Events.IEventContext context, TestEvent2 e) { Console.WriteLine(System.Threading.Thread.CurrentThread.ManagedThreadId); Console.WriteLine("e_2_one"); }
/// <summary> /// 动作执行前 /// </summary> /// <param name="context">上下文</param> /// <param name="e">事件</param> public virtual void OnActionExecuting(Events.IEventContext context, IEvent e) { #if DEBUG Console.WriteLine("event_action"); #endif }