Example #1
0
        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();
        }
Example #2
0
 protected override void OnStop()
 {
     _engineMain.Stop();
 }