Ejemplo n.º 1
0
 private void Subsribe_Click(object sender, RoutedEventArgs e)
 {
     //var theEvent = _eventAggregator.GetEvent<ContextChangedTransportEvent>();
     //theEvent.Subscribe(OnEvent);
     if (_transportClient == null)
     {
         _transportClient = new CrossProcessTransportClient();
     }
     _transportClient.Subscribe("Event1", OnEvent);
 }
Ejemplo n.º 2
0
 private void Subsribe_Click(object sender, RoutedEventArgs e)
 {
     if (_transportClient == null)
     {
         _transportClient = new CrossProcessTransportClient();
     }
     //var theEvent = _eventAggregator.GetEvent<ShortcutTransportEvent>();
     //theEvent.Subscribe(OnEvent);
     _transportClient.Subscribe("Event2", OnEvent);
 }
Ejemplo n.º 3
0
 public void GivenSubscribeOnShortcutEvent()
 {
     _transport  = new CrossProcessTransportClient();
     _waitHandle = new AutoResetEvent(false);
     _transport.Subscribe("Shortcut", Wait);
 }