private void OnInvocationResult(object sender, InvocationResultEventArgs e)
 {
   RiotAccount account = sender as RiotAccount;
   this.OnData(account, e.Result);
   if (e.Service == "matchmakerService" && e.Method == "purgeFromQueues" && e.Success)
   {
     this.SetLeftQueue(account);
   }
   else
   {
     if (!(e.Service == "gameService") || !(e.Method == "quitGame") || (account.Game == null || !JsApiService.IsGameStateExitable(account.Game.GameState)))
       return;
     this.SetLeftQueue(account);
   }
 }
 private void OnInvocationResult(object sender, InvocationResultEventArgs e)
 {
   RiotAccount account = sender as RiotAccount;
   if ((!e.Success || !(e.Service == "gameService") ? 0 : (e.Method == "quitGame" ? 1 : 0)) != 0)
   {
     if (account.Game != null && !JsApiService.IsGameStateExitable(account.Game.GameState))
       return;
     this.UpdateGame(account, (GameDTO) null);
   }
   else if ((!e.Success || !(e.Service == "gameService") ? 0 : (e.Method == "retrieveInProgressGameInfo" ? 1 : 0)) != 0)
   {
     PlatformGameLifecycleDTO gameLifecycleDto = e.Result as PlatformGameLifecycleDTO;
     this.UpdateGame(account, gameLifecycleDto != null ? gameLifecycleDto.Game : (GameDTO) null);
   }
   else
     this.OnData(account, e.Result);
 }
 private void OnInvocationResult(object sender, InvocationResultEventArgs args)
 {
     RiotAccount riotAccount = sender as RiotAccount;
     this.OnData(riotAccount, args.Result);
     if (args.Service == "matchmakerService" && args.Method == "purgeFromQueues" && args.Success)
     {
         this.SetLeftQueue(riotAccount);
         return;
     }
     if (args.Service == "gameService" && args.Method == "quitGame" && riotAccount.Game != null && JsApiService.IsGameStateExitable(riotAccount.Game.GameState))
     {
         this.SetLeftQueue(riotAccount);
     }
 }
 private void OnInvocationResult(object sender, InvocationResultEventArgs e)
 {
   this.OnData(sender as RiotAccount, e.Result);
 }
 private void OnInvocationResult(object sender, InvocationResultEventArgs args)
 {
     GameDTO game;
     RiotAccount riotAccount = sender as RiotAccount;
     if ((!args.Success || !(args.Service == "gameService") ? false : args.Method == "quitGame"))
     {
         if (riotAccount.Game != null && !JsApiService.IsGameStateExitable(riotAccount.Game.GameState))
         {
             return;
         }
         this.UpdateGame(riotAccount, null);
         return;
     }
     if ((!args.Success || !(args.Service == "gameService") ? true : args.Method != "retrieveInProgressGameInfo"))
     {
         this.OnData(riotAccount, args.Result);
         return;
     }
     PlatformGameLifecycleDTO result = args.Result as PlatformGameLifecycleDTO;
     RiotAccount riotAccount1 = riotAccount;
     if (result != null)
     {
         game = result.Game;
     }
     else
     {
         game = null;
     }
     this.UpdateGame(riotAccount1, game);
 }