public IList <FileInfo> GetSupportedFiles(string rootLogDirectory)
        {
            IList <FileInfo> supportedFiles = new List <FileInfo>();

            foreach (FileInfo file in DirectoryHelper.GetAllFiles(rootLogDirectory))
            {
                try
                {
                    if (parserFactory.IsSupported(file.FullName))
                    {
                        supportedFiles.Add(file);
                    }
                }
                // Just swallow any downstream exceptions for the sake of stability.
                catch (Exception) { }
            }
            return(supportedFiles);
        }
        protected IEnumerable <FileInfo> GetSupportedFiles(string rootLogDirectory, IParserFactory parserFactory)
        {
            var supportedFiles = new List <FileInfo>();

            foreach (FileInfo file in DirectoryHelper.GetAllFiles(rootLogDirectory))
            {
                try
                {
                    if (parserFactory.IsSupported(file.FullName))
                    {
                        supportedFiles.Add(file);
                    }
                }
                // Just swallow any downstream exceptions for the sake of stability; we can't guarantee the artifact processor author was vigilant.
                catch (Exception ex)
                {
                    Log.ErrorFormat("Unable to determine if file '{0}' is supported: {1}", file.FullName, ex.Message);
                }
            }

            return(supportedFiles);
        }