Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Event for stop/Exit of started task

$
0
0
Is there an Event that gets raised when the process that I start via a Task gets stopped?

Currently I use
var processlist = Process.GetProcesses();

foreach(var theprocess in processlist)
 {
          if (theprocess.ProcessName != "DEMO")
                 continue;

          theprocess.WaitForExit();
          break;
 }
to enum all processes and If I find my started program I wait for Exit. Is there a better way?

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>