Suppose I have a .net console application that executes some long-running code on a thread.
I would like to make the console application terminate while the thread is still running. Specifically, I would like to launch the console application from a batch file or other process that will kick off the long-running process and then continue doing other things while the long-running thread is executing.
If it isn't possible, the only workaround I know would be to have a service program host the long-running thread.
Is it possible to make a console application return control like I described?