Пример #1
0
 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
 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; }
     }
 }