static void Main(string[] args) { System.Console.WriteLine("Please enter a ticker"); string ticker = Console.ReadLine(); AppDomain.CurrentDomain.ProcessExit += new EventHandler(OnProcessExit); priceGenerator = new PricesGenerator(NBBOService.getInstance()); priceGenerator.Start(); System.Threading.Thread.Sleep(1000); //Thread.Sleep(10000); while (true || System.Console.ReadKey() == null) { Console.WriteLine("Running"); System.Threading.Thread.Sleep(1000); } }