private void subs_EventReceived2(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e) { countEvent.Signal(); System.Diagnostics.Debug.WriteLine(string.Format("New message received {0}", e.Data.Data)); Received = true; (sender as ISubscriber <TestEvent>).HandleEvent(e.Data); }
private void subs_EventReceived(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e) { Received = true; mre.Set(); (sender as ISubscriber <TestEvent>).HandleEvent(e.Data); }
private void subs_EventHandled(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e) { Handled = true; }
private void subs_EventHandled2(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e) { System.Diagnostics.Debug.WriteLine("New message handled"); }
private void subscriber_EventHandled2(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e) { Handled = true; countEvent.Signal(); }