Exemplo n.º 1
0
 private void updateMoneyWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         UserMoneyMgr.UpdateUsersMoney(this._DBManger);
         UserMoneyMgr.ScanInputLogToDBLog(this._DBManger);
         UserMoneyMgr.QueryTotalUserMoney();
         ChatMsgManager.ScanGMMsgToGameServer(this._DBManger);
     }
     catch (Exception ex)
     {
         DataHelper.WriteFormatExceptionLog(ex, "updateMoneyWorker_DoWork", false, false);
     }
 }
Exemplo n.º 2
0
        //Background processing refresh the user recharge the event
        private void updateMoneyWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                //Update the user to recharge the ingot data
                UserMoneyMgr.UpdateUsersMoney(_DBManger);

                //Scanning the recharge flow to generate binary logs
                UserMoneyMgr.ScanInputLogToDBLog(_DBManger);

                //Scan the GM command flow to the client
                ChatMsgManager.ScanGMMsgToGameServer(_DBManger);
            }
            catch (Exception ex)
            {
                //System.Windows.Application.Current.Dispatcher.Invoke((MethodInvoker)delegate
                //{
                // Formatting exception error message
                DataHelper.WriteFormatExceptionLog(ex, "updateMoneyWorker_DoWork", false);
                //throw ex;
                //});
            }
        }