protected override void OnStart(string[] args)
        {
            string paths = System.Configuration.ConfigurationManager.AppSettings["paths"];
            var arr = paths.Split('|');
            foreach (var item in arr)
            {
                var qp = new QueueProcessor(item);
                qp.Start();

                list.Add(qp);
            }


        }
Beispiel #2
0
 private void btnStart_Click(object sender, EventArgs e)
 {
     list.Clear();
     foreach (var item in paths)
     {
         var model = new QueueProcessor(item);
         model.Start();
         list.Add(model);
     }
 }