Exemple #1
0
        private IEnumerable <string> PipelineSaver(IPipe P, string path)
        {
            File.WriteAllText(path, "");
            foreach (string item in P.GenerateEnumerable())
            {
                File.AppendAllText(path, item + Environment.NewLine);
                yield return(item);
            }

            UI?.Lab?.RegisterReusableWorker(new FileLineReader(path, UI), $"Saved order of {SavePath} downloads");
        }
Exemple #2
0
 public IEnumerable <string> GenerateEnumerable()
 {
     return(Pp.GenerateEnumerable());
 }