// Token: 0x060007A9 RID: 1961 RVA: 0x000237C4 File Offset: 0x000219C4
 protected void OnNetworkError()
 {
     if (base.State == Task.TaskState.Paused || base.State == Task.TaskState.Stopped)
     {
         return;
     }
     if (this.m_isLaunchedReloginUITask)
     {
         return;
     }
     if (!this.m_autoRetry)
     {
         base.Stop();
         this.m_isLaunchedReloginUITask = true;
         if (NetWorkTransactionTask.EventReLoginBySession != null)
         {
             NetWorkTransactionTask.EventReLoginBySession(null);
         }
         return;
     }
     base.Pause();
     if (this.m_isUIWaitingShown)
     {
         this.m_isUIWaitingShown = false;
         NetWorkTransactionTask.EventShowUIWaiting(false);
     }
     this.UnregisterNetworkEvent();
     this.m_isLaunchedReloginUITask = true;
     if (NetWorkTransactionTask.EventReLoginBySession != null)
     {
         NetWorkTransactionTask.EventReLoginBySession(new Action(this.OnReLoginSuccess));
     }
 }
 // Token: 0x060007AA RID: 1962 RVA: 0x00023878 File Offset: 0x00021A78
 protected virtual void OnReLoginSuccess()
 {
     this.m_isLaunchedReloginUITask = false;
     base.Resume(null);
     this.m_isTimeOuted = false;
     if ((double)this.m_timeout > 0.001)
     {
         this.m_timeoutTime = new DateTime?(Timer.m_currTime.AddSeconds((double)this.m_timeout));
     }
     if (this.m_isUIWaitingShown)
     {
         this.m_isUIWaitingShown = false;
         if (NetWorkTransactionTask.EventShowUIWaiting != null)
         {
             NetWorkTransactionTask.EventShowUIWaiting(false);
         }
     }
     this.m_showWaitingUITime = Timer.m_currTime.AddSeconds((double)NetWorkTransactionTask.m_delayTimeForUIWaiting);
     this.RegisterNetworkEvent();
     if (!this.StartNetWorking())
     {
         if (this.m_autoRetry)
         {
             base.ExecAfterTicks(new Action(this.OnNetworkError), 1UL);
         }
         this.m_autoRetry = false;
     }
 }
 // Token: 0x060007A4 RID: 1956 RVA: 0x000236D8 File Offset: 0x000218D8
 protected override void OnTick()
 {
     if (this.m_isReturnToLoginByDirtyData)
     {
         return;
     }
     if (!this.m_isUIWaitingShown && Timer.m_currTime > this.m_showWaitingUITime)
     {
         this.m_isUIWaitingShown = true;
         if (NetWorkTransactionTask.EventShowUIWaiting != null)
         {
             NetWorkTransactionTask.EventShowUIWaiting(true);
         }
     }
     if (!this.m_isTimeOuted)
     {
         DateTime?timeoutTime = this.m_timeoutTime;
         if (timeoutTime != null)
         {
             DateTime?timeoutTime2 = this.m_timeoutTime;
             if (Timer.m_currTime > timeoutTime2)
             {
                 this.m_isTimeOuted = true;
                 this.OnTimeOut();
                 return;
             }
         }
     }
 }
 // Token: 0x0600079D RID: 1949 RVA: 0x000234F8 File Offset: 0x000216F8
 protected override void OnStop()
 {
     global::Debug.Log(string.Format("{0}::OnStop", base.GetType().Name));
     this.UnregisterNetworkEvent();
     if (this.m_blockedUITask != null)
     {
         this.m_blockedUITask.EnableUIInput(true, null);
     }
     if (this.m_isUIWaitingShown)
     {
         this.m_isUIWaitingShown = false;
         NetWorkTransactionTask.EventShowUIWaiting(false);
     }
     UIManager.Instance.EventReturnToLoginUI -= this.OnUIManagerReturnToLoginUI;
 }