How do I create an event loop/message pipe in a console application?
问题 I would like to create an console application which has some events registered. The problem is that those events are never fired. In this particular situation in a Windows Forms application I should invoke Application.Run(new Form()); after registering those events, but it is Console Application . So I would like to create an event loop or message pipe if it is possible for that console application. The application: using Bonjour; using System; using System.Threading; using Bonjour; using