/// <summary> /// 线程开始 /// </summary> /// <param name="dtStart"></param> /// <param name="dtEnd"></param> /// <param name="log"></param> public void AutoStart(DateTime dtStart, DateTime dtEnd, bool blnBackUpData, string strBackFilePath, bool blnDeleteDataEveryHour, int iPCBLimit) { try { runnerDeleteData = new ThreadProcess(dtStart, dtEnd, blnBackUpData, strBackFilePath, blnDeleteDataEveryHour, iPCBLimit); runnerDeleteData.Run(); } catch (Exception ex) { AppLogHelp.WriteLog(LogFileFormate.Delete, ThreadName + ex.ToString()); } }
public void AutoStart(DateTime dtEndTime, bool blnBackUpData, string strBackFilePath, Log log) { try { runner = new ThreadProcess(dtEndTime, blnBackUpData, strBackFilePath, log); runner.Run(); } catch (Exception ex) { log.WriteErr("错误 ! " + ex.ToString(), ThreadName); } }
public void AutoStart(DateTime dtEndTime, bool blnBackUpData, string strBackFilePath, bool blnDeleteDataEveryHour, int iPCBLimit) { try { runnerDeleteData = new ThreadProcess(dtEndTime, blnBackUpData, strBackFilePath, blnDeleteDataEveryHour, iPCBLimit); runnerDeleteData.Run(); } catch (Exception ex) { //log.WriteErr("错误 ! " + ex.ToString(), ThreadName); AppLogHelp.WriteError(LogFileFormate.Delete, ThreadName + " 错误 ! :" + ex.ToString()); // moditied by peng 20190314 throw ex; } }