コード例 #1
0
 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);
 }
コード例 #2
0
 private void subs_EventReceived(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e)
 {
     Received = true;
     mre.Set();
     (sender as ISubscriber <TestEvent>).HandleEvent(e.Data);
 }
コード例 #3
0
 private void subs_EventHandled(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e)
 {
     Handled = true;
 }
コード例 #4
0
 private void subs_EventHandled2(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e)
 {
     System.Diagnostics.Debug.WriteLine("New message handled");
 }
コード例 #5
0
 private void subscriber_EventHandled2(object sender, EventBus.Infrastructure.BusEventArgs <TestEvent> e)
 {
     Handled = true;
     countEvent.Signal();
 }