private static void DoRun(IDictionary <string, string> options) { Service svc = new Service(); svc.StartService(new String[0]); Console.WriteLine("Press q to shutdown."); Console.WriteLine("Press t for a thread dump."); while (true) { ConsoleKeyInfo info = Console.ReadKey(); if (info.KeyChar == 'q') { break; } else if (info.KeyChar == 't') { svc.DumpRequests(); } } svc.StopService(); }
private static void DoRun(IDictionary<string, string> options) { Service svc = new Service(); svc.StartService(new String[0]); Console.WriteLine("Press q to shutdown."); Console.WriteLine("Press t for a thread dump."); while (true) { ConsoleKeyInfo info = Console.ReadKey(); if (info.KeyChar == 'q') { break; } else if (info.KeyChar == 't') { svc.DumpRequests(); } } svc.StopService(); }