public void Orchestrator_StartListeningForNewRequests() { Orchestrator.Orchestrator target = new Orchestrator.Orchestrator(); target.Logger = new TestLogger(TestContext); target.Start(); System.Threading.Thread.Sleep(500); target.Cancel(); }
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; }