Example #1
0
 private void Instance_TokensChanged(object sender, TwitchTokenEventArgs e)
 {
     if (e.Token != null && !String.IsNullOrEmpty(e.Token.Token))
     {
         GetStreamInfo();
     }
 }
Example #2
0
 private void Instance_TokensChanged(object sender, TwitchTokenEventArgs e)
 {
     if (TwitchTokenManager.Instance.TokenExists)
     {
         if (connectCalled) // Already connected, try registering for pubsub events
         {
             RegisterEventsToListenTo();
         }
         else // Not connected - start by connecting to pubsub
         {
             ConnectPubSub();
         }
     }
 }
Example #3
0
 private void Instance_TokensChanged(object sender, TwitchTokenEventArgs e)
 {
     token = e.Token;
     Logger.Instance.LogMessage(TracingLevel.INFO, $"Tokens changed, reconnecting");
     Connect(DateTime.Now);
 }
Example #4
0
 private void Instance_TokensChanged(object sender, TwitchTokenEventArgs e)
 {
     token = e.Token;
 }