Exemplo n.º 1
0
        //Background sorting events
        private void updatePaiHangWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                //Deal with charts
                PaiHangManager.ProcessPaiHang(_DBManger, false);

                //Number of online users
                OnlineUserNumMgr.WriteTotalOnlineNumToDB(_DBManger);

                //Writes the current number of online people to the notification statistics server
                OnlineUserNumMgr.NotifyTotalOnlineNumToServer(_DBManger);

                //Recalculate the number of gangs
                BangHuiNumLevelMgr.RecalcBangHuiNumLevel(_DBManger);

                //Deal with dissolution gang
                BangHuiDestroyMgr.ProcessDestroyBangHui(_DBManger);

                //Every morning morning clear Yangzhou city tax
                GameDBManager.BangHuiLingDiMgr.ProcessClearYangZhouTotalTax(_DBManger);
            }
            catch (Exception ex)
            {
                //System.Windows.Application.Current.Dispatcher.Invoke((MethodInvoker)delegate
                //{
                // Formatting exception error message
                DataHelper.WriteFormatExceptionLog(ex, "updatePaiHangWorker_DoWork", false);
                //throw ex;
                //});
            }
        }
Exemplo n.º 2
0
 private void updatePaiHangWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         PaiHangManager.ProcessPaiHang(this._DBManger, false);
         OnlineUserNumMgr.WriteTotalOnlineNumToDB(this._DBManger);
         OnlineUserNumMgr.NotifyTotalOnlineNumToServer(this._DBManger);
         BangHuiNumLevelMgr.RecalcBangHuiNumLevel(this._DBManger);
         BangHuiDestroyMgr.ProcessDestroyBangHui(this._DBManger);
         GameDBManager.BangHuiLingDiMgr.ProcessClearYangZhouTotalTax(this._DBManger);
     }
     catch (Exception ex)
     {
         DataHelper.WriteFormatExceptionLog(ex, "updatePaiHangWorker_DoWork", false, false);
     }
 }