I have a simple application where I need to stop the reverse flow using the Stop () function before closing the application. The problem is that my Main () function has multiple exit points (return statements)
static void Main(string[] args)
{
return;
return;
}
I tried using AppDomain.CurrentDomain.ProcessExit as a place to subscribe to cleanup, but it is never called (at least when there is a background thread). Is there a way to work out a good way to implement this?
source
share