Example #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (!_subscribed)
     {
         _client.SubscribeAsync();
     }
     else
     {
         _client.UnSubscribeAsync();
     }
     btnSubscribe.IsEnabled = false;
 }