Esempio n. 1
0
        public void RunService()
        {
            UI.Log("");
            UI.Log("    . . . . . . . . . . . . . . . .  .  ");
            UI.Log("               Methane                  ");
            UI.Log("            Bulk HTTP Download          ");
            UI.Log("    . . . . . . . . . . . . . . . .  .  ");
            UI.Log("");



            UI.Log("Rapid Downloader Running...");

            if (RequireOrderLog)
            {
                bodyPipeline = PipelineSaver(csa, SavePath.TrimEnd('/') + ".downloaded-order.txt").GetEnumerator();
            }
            else
            {
                bodyPipeline = csa.RunIterator();
            }

            for (int n = 0; n < AllowedThrds; n++)
            {
                new System.Threading.Thread(new System.Threading.ThreadStart(ThrLoop))
                {
                    Name = $"DWN Thrd {n}"
                }.Start();
                System.Threading.Thread.Sleep(1000);
            }


            while (runningThreads > 0)
            {
                System.Threading.Thread.Sleep(1000);
            }
        }
Esempio n. 2
0
 public IEnumerator <string> RunIterator()
 {
     return(Pp.RunIterator());
 }