Пример #1
0
 public static List <ScanLevel> GetScanLevels(this IScanLevelBuilder builder, string fileName)
 {
     using (var reader = RawFileFactory.GetRawFileReader(fileName))
     {
         return(builder.GetScanLevels(reader));
     }
 }
        public override IEnumerable <string> Process()
        {
            using (var rawFile = RawFileFactory.GetRawFileReader(_options.InputFile))
            {
                var levels = GetScanLevels(rawFile);
                new ScanLevelFormat().WriteToFile(_options.OutputFile, levels);
            }

            return(new[] { _options.OutputFile });
        }
 public CacheRawFile(string fileName)
 {
     this.rawFile = RawFileFactory.GetRawFileReader(fileName);
 }