public static void Main(string[] args) { Console.WriteLine("Starting program"); Logger.Factory = new ConsoleLoggerFactory(); using (var sample = new StockTickerSample()) { Console.WriteLine("Press any key to stop..."); sample.Run(); Console.ReadKey(); } }