/// <summary> /// Traverse RootPath /// </summary> /// <returns>If RootPath is not exists ,don't need execute next step</returns> public override bool CheckParameter() { bool rtn = System.IO.Directory.Exists(param.OriginalRootPath); if (rtn) { //SuccessRecorder = ObjectBuildFactory<IHistoryRecorder>.Instance(SystemConfiguration.HistorRecorderClassName,new object[] { SystemConfiguration.SuccessHistoryName, true }); SuccessRecorder = ObjectBuildFactory <IHistoryRecorder> .Instance(SystemConfiguration.GetValue("HistorRecorderClassName"), new object[] { SystemConfiguration.GetValue("SuccessHistoryName"), true }); } else { LoggerHelper.Warn("[" + param.OriginalRootPath + "] is Exists.\r\n"); } return(rtn); }
/// <summary> /// Check RootPath /// </summary> /// <returns>If RootPath is not exists ,don't need execute next step</returns> public override bool CheckParameter() { bool rtn = System.IO.Directory.Exists(param.OriginalRootPath); if (rtn) { SuccessRecorder = ObjectBuildFactory <IHistoryRecorder> .Instance(SystemConfiguration.GetValue("HistorRecorderClassName"), new object[] { SystemConfiguration.GetValue("SuccessHistoryName"), true }); //FailRecorder = ObjectBuildFactory<IHistoryRecorder>.Instance(SystemConfiguration.HistorRecorderClassName, new object[] { SystemConfiguration.FailHistoryName, true }); } else { LoggerHelper.Warn("[" + param.OriginalRootPath + "] is Exists."); } if (param.OriginalRootPath.Trim().ToLower() == param.OutputRootPath.Trim().ToLower()) { LoggerHelper.Warn("Origina Directory is not allowed to be the same as Output Directory . Please choose another Output Directory.\r\n"); rtn = false; } return(rtn); }
public DefineThisApplication(IDefiner definer, IHistoryRecorder historyRecorder) { _definer = definer; _historyRecorder = historyRecorder; }