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