static void Main(string[] args) { if (SimpleHttpServerHost.StartService <Program>("HelloWorld")) { stopEvent = new ManualResetEvent(false); stopEvent.WaitOne(); } else { Console.WriteLine("Press [ENTER] to exit."); Console.ReadLine(); } }
static void Main(string[] args) { if (SimpleHttpServerHost.StartService <Program>("NestleSpider")) { stopEvent = new ManualResetEvent(false); do { Spider.Run(); } while (!stopEvent.WaitOne(3600 * 1000)); } else { Console.WriteLine("Press [ENTER] to exit."); Console.ReadLine(); } }