public bool Process() { var allFiles = Directory.GetFiles(path, filter); if (allFiles.Length == 0) { return(false); } foreach (var filePath in allFiles) { NewFileToProcess?.Invoke(filePath); } return(true); }
private void ProcessFile(string filePath) { NewFileToProcess?.Invoke(filePath); }