static void Main() { Application.ApplicationExit += Application_ApplicationExit; _service = new PythonService(); _service.Start(); Application.Run(); }
private static void Main() { AppDomain.CurrentDomain.ProcessExit += Application_ApplicationExit; _service = new PythonService(); _service.RunServer(); Console.ReadLine(); }