static void Main (string[] args) { // app = new P2pProxyApp(true, args.Contains("--debug")); app.Start(); while (true) { System.Threading.Thread.Sleep(1000); } app.Notifyed -= AppOnNotifyed; app.Close(); }