public void T_ThreadPool() {// TODO: Add Testing logic here var task1 = threadPool.CreateTask <MyJob1>(); task1.TaskContent.Id = 100; task1.Controller = new TaskControl(false, new Timecard(TimeSpan.FromSeconds(3))); var task2 = threadPool.CreateTask <MyJob2>(); task2.CompleteEvent += OnTask2CompleteEvent; threadPool.PushTask(task1); threadPool.PushTask(task2); }