예제 #1
0
 public void Orchestrator_StartListeningForNewRequests()
 {
     Orchestrator.Orchestrator target = new Orchestrator.Orchestrator();
     target.Logger = new TestLogger(TestContext);
     target.Start();
     System.Threading.Thread.Sleep(500);
     target.Cancel();
 }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     button2.Enabled = false;
     for (int i = 0; i < numericUpDown1.Value; i++)
     {
         Request r = new Request()
         {
             Id = i
         };
         r.Status = RequestStatus.New;
         _list.Add(r);
     }
     //_orc.StartListeningForNewRequests();
     //_orc.StartProcessingRequests();
     _orc.Start();
     numericUpDown1.Value = 0;
 }