示例#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();
        }
示例#2
0
        protected override void OnStart(string[] args)
        {
            _engineMain = new EngineMain();

            _engineMain.Start();
        }