예제 #1
0
 void sub1_EventHandled(object sender, Infrastructure.BusEventArgs <TestEvent> e)
 {
     System.Diagnostics.Debug.WriteLine("Handled " + sender.GetType().Name);
     countEvent.Signal();
 }
예제 #2
0
 void sub1_EventReceived(object sender, Infrastructure.BusEventArgs <TestEvent> e)
 {
     System.Diagnostics.Debug.WriteLine("Received " + sender.GetType().Name);
     (sender as ISubscriber <TestEvent>).HandleEvent(e.Data);
 }