Beispiel #1
0
 private void Unsubscribe_Click(object sender, RoutedEventArgs e)
 {
     if (_transportClient == null)
     {
         _transportClient = new CrossProcessTransportClient();
     }
     // var theEvent = _eventAggregator.GetEvent<TransportEvent<string>>();
     //theEvent.Unsubscribe(OnEvent);
     _transportClient.Unsubsribe(OnEvent);
 }
Beispiel #2
0
 private void Unsubscribe_Click(object sender, RoutedEventArgs e)
 {
     //var theEvent = _eventAggregator.GetEvent<ContextChangedTransportEvent>();
     //theEvent.Unsubscribe(OnEvent);
     if (_transportClient == null)
     {
         _transportClient = new CrossProcessTransportClient();
     }
     _transportClient.Unsubsribe(OnEvent);
 }