static void Main(string[] args) { EngineMain engineMain = new EngineMain(); engineMain.Start(); Console.WriteLine("Press the Escape (Esc) key to quit the Template Engine at any time:"); while (Console.ReadKey().Key != ConsoleKey.Escape) { ; } Console.WriteLine("Stopping..."); engineMain.Stop(); }
protected override void OnStart(string[] args) { _engineMain = new EngineMain(); _engineMain.Start(); }