public void AbortAll() { ProcessManager executerManager = new ProcessManager(); // Create container executerManager.OnProcessExit = OnExitCallbackFunction; executerManager.RunExec(Guid.NewGuid().ToString(), "TEST_MANAGEMED_APP.exe", "task1", "", OnProcessCallBack, @"D:\STORE_EXEC\TEST_MANAGEMED_APP"); executerManager.RunExec(Guid.NewGuid().ToString(), "TEST_MANAGEMED_APP.exe", "task2", "", OnProcessCallBack, @"D:\STORE_EXEC\TEST_MANAGEMED_APP"); executerManager.RunExec(Guid.NewGuid().ToString(), "TEST_MANAGEMED_APP.exe", "task3", "", OnProcessCallBack, @"D:\STORE_EXEC\TEST_MANAGEMED_APP"); executerManager.RunExec(Guid.NewGuid().ToString(), "TEST_MANAGEMED_APP.exe", "task2", "", OnProcessCallBack, @"D:\STORE_EXEC\TEST_MANAGEMED_APP"); Thread.Sleep(1000); executerManager.AbortAll(); executerManager.WaitAll(); }