示例#1
0
        static void Main()
        {
            Application.ApplicationExit += Application_ApplicationExit;

            _service = new PythonService();
            _service.Start();
            Application.Run();
        }
示例#2
0
        private static void Main()
        {
            AppDomain.CurrentDomain.ProcessExit += Application_ApplicationExit;

            _service = new PythonService();
            _service.RunServer();
            Console.ReadLine();
        }