How to get Task manager process closing events in c#?
Sachwet
1
Reputation point
Hi Team
I am Implimenting a server(APIGatewat.exe which is console exe) to launch other console exe(act as other servers) in background without
user intercation mode
i am able to launch the exe(using process start) but when
im closing my Main exe in background (like if exe get close in task manager or if it get close by other UI tool)
my other exe are not getting close
when i use the cross mark in corner to close other exe also gets close for this im using event
AppDomain.CurrentDomain.ProcessExit += new EventHandler(ProcessExitHandler);
anyone have idea how we can handle taskmanager process cloing events? or any other solution
Sign in to answer