Exemplo n.º 1
0
 private void AccountOnStateChanged(object sender, StateChangedEventArgs args)
 {
     RiotAccount riotAccount = (RiotAccount)sender;
     if (args.NewState == ConnectionState.Connected)
     {
         RiotUpdateDaemon riotUpdater = Instances.RiotUpdater;
         string[] realmId = new string[] { riotAccount.RealmId };
         riotUpdater.TryUpdate(realmId);
     }
 }
 private void AccountOnStateChanged(object sender, StateChangedEventArgs e)
 {
   RiotAccount riotAccount = (RiotAccount) sender;
   if (e.NewState != ConnectionState.Connected)
     return;
   Instances.RiotUpdater.TryUpdate(new string[1]
   {
     riotAccount.RealmId
   });
 }
Exemplo n.º 3
0
 private void AccountOnStateChanged(object sender, StateChangedEventArgs args)
 {
     RiotAccount riotAccount = sender as RiotAccount;
     if (riotAccount == null)
     {
         return;
     }
     if (args.NewState == ConnectionState.Disconnected && args.OldState != args.NewState)
     {
         riotAccount.ReconnectThrottledAsync();
     }
 }
 private void OnAccountStateChanged(object sender, StateChangedEventArgs e)
 {
   this.NotifyAccounts();
 }
 private void AccountOnStateChanged(object sender, StateChangedEventArgs e)
 {
   RiotAccount riotAccount = sender as RiotAccount;
   if (riotAccount == null || e.NewState != ConnectionState.Disconnected || e.OldState == e.NewState)
     return;
   riotAccount.ReconnectThrottledAsync();
 }