示例#1
0
文件: Service1.cs 项目: tomyqg/CGUST
 private void objTimerUpdateService_Elapsed(object sender, EventArgs e)
 {
     UpdateServiceTime.UpdateServiceTime objUpdateServiceTime = new UpdateServiceTime.UpdateServiceTime();
     try
     {
         g_oLogger.Info("UpdateServiceTime Run Time--" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
         objUpdateServiceTime.Update_Time();
     }
     catch (Exception ex)
     {
         g_oLogger.ErrorException("Service1.objTimerUpdateService_Elapsed", ex);
     }
     finally
     {
         if (objUpdateServiceTime != null)
         {
             objUpdateServiceTime = null;
         }
     }
 }
示例#2
0
文件: Service1.cs 项目: FTCEEP/CGUST
 private void objTimerUpdateService_Elapsed(object sender, EventArgs e)
 {
     UpdateServiceTime.UpdateServiceTime objUpdateServiceTime = new UpdateServiceTime.UpdateServiceTime();
     try
     {
         g_oLogger.Info("UpdateServiceTime Run Time--" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
         objUpdateServiceTime.Update_Time();
     }
     catch (Exception ex)
     {
         g_oLogger.ErrorException("Service1.objTimerUpdateService_Elapsed", ex);
     }
     finally
     {
         if (objUpdateServiceTime != null) { objUpdateServiceTime = null; }
     }
 }