Exemplo n.º 1
0
        public void ProcessFiles()
        {
            try
            {
                foreach (var file in _fileManagement.Scanner())
                {
                    var fileProcessing = _fileManagement.MoveForProcessing(file);

                    var summaryResult = _fileProcessor.SummarizeFile(fileProcessing);

                    if (summaryResult != null)
                    {
                        _fileManagement.SaveFile(summaryResult);
                    }
                }
            }
            catch (Exception ex)
            {
                _logger.LogError(ex, "Process file error!");
            }
        }