/// <summary> /// Returns a file path/name for a run result file. Will create the /// job run directory if it does not exist. /// </summary> /// <param name="definitionName">Definition name</param> /// <param name="runItem">Result type</param> /// <param name="runStart">Run date</param> /// <returns>File path/name</returns> private static string GetRunFilePathName( string definitionName, JobRunItem runItem, DateTime runStart) { string directoryPath = GetJobRunOutputDirectory(definitionName); string jobRunPath = string.Format(CultureInfo.InvariantCulture, @"{0}\{1}", directoryPath, ConvertDateTimeToJobRunName(runStart)); return string.Format(CultureInfo.InvariantCulture, @"{0}\{1}.xml", jobRunPath, runItem.ToString()); }
/// <summary> /// Returns a file path/name for a job run result, based on the passed in /// job run output path. Will create the job run directory if it does not /// exist. /// </summary> /// <param name="outputPath">Definition job run output path</param> /// <param name="runItem">Result type</param> /// <param name="runStart">Run date</param> /// <returns></returns> private static string GetRunFilePathNameFromPath( string outputPath, JobRunItem runItem, DateTime runStart) { string jobRunPath = string.Format(CultureInfo.InvariantCulture, @"{0}\{1}", outputPath, ConvertDateTimeToJobRunName(runStart)); if (!Directory.Exists(jobRunPath)) { // Create directory for this job run date. Directory.CreateDirectory(jobRunPath); } return string.Format(CultureInfo.InvariantCulture, @"{0}\{1}.xml", jobRunPath, runItem.ToString()); }
/// <summary> /// Returns a file path/name for a job run result, based on the passed in /// job run output path. Will create the job run directory if it does not /// exist. /// </summary> /// <param name="outputPath">Definition job run output path</param> /// <param name="runItem">Result type</param> /// <param name="runStart">Run date</param> /// <returns></returns> private static string GetRunFilePathNameFromPath( string outputPath, JobRunItem runItem, DateTime runStart) { string jobRunPath = string.Format(CultureInfo.InvariantCulture, @"{0}\{1}", outputPath, ConvertDateTimeToJobRunName(runStart)); if (!Directory.Exists(jobRunPath)) { // Create directory for this job run date. Directory.CreateDirectory(jobRunPath); } return string.Format(CultureInfo.InvariantCulture, @"{0}\{1}.xml", jobRunPath, runItem.ToString()); }
/// <summary> /// Returns a file path/name for a run result file. Will create the /// job run directory if it does not exist. /// </summary> /// <param name="definitionName">Definition name</param> /// <param name="runItem">Result type</param> /// <param name="runStart">Run date</param> /// <returns>File path/name</returns> private static string GetRunFilePathName( string definitionName, JobRunItem runItem, DateTime runStart) { string directoryPath = GetJobRunOutputDirectory(definitionName); string jobRunPath = string.Format(CultureInfo.InvariantCulture, @"{0}\{1}", directoryPath, ConvertDateTimeToJobRunName(runStart)); return string.Format(CultureInfo.InvariantCulture, @"{0}\{1}.xml", jobRunPath, runItem.ToString()); }