In general, there is an interesting method System.Windows.Forms.Application.Run () (without arguments!). when it is called, the main application thread "hangs" pending and "leaves" only when Application.Exit ().
I throw an app on an Asp.net server where Application.Run () cannot be used. And the application is key built on it.
So the question is: without System.Windows.Forms, how can you achieve the same effect as Application.Run ()?