/// <summary> /// Получение входных данных. /// </summary> private async Task <TestResultRepositiry> GetInputData() { runTime = String.Empty; TimeSpan _runTime; DateTime _startRun = DateTime.Now; List <Task> _tasks = new List <Task>(); string[] filePathes = StaticService.GetPathFiles(folderInput, patern1); testResultRepo = new TestResultRepositiry(); // очищаем папки StaticService.DeleteAllFile(folderOutTestResult, patern1); StaticService.DeleteAllFile(folderOutTestTradesSimple, patern1); StaticService.DeleteAllFile(folderOutTestTradesOPT, patern1); foreach (string _path in filePathes) // проходим по файлам { _tasks.Add(TrendAlgoritmTest(_path)); } await Task.WhenAll(_tasks); StaticService.Serializes(testResultRepo, folderOutTestResult + "!_actul_result"); _runTime = DateTime.Now - _startRun; runTime = String.Format("{0:00}:{1:00}:{2:00}.{3:000}", _runTime.Hours, _runTime.Minutes, _runTime.Seconds, _runTime.Milliseconds); return(testResultRepo); }