public App() { AppDomain.CurrentDomain.UnhandledException += (sender, e) => { LogUnhandledException(e.ExceptionObject); }; NatHelper.BeginDiscover((ar) => NatHelper.EndDiscover(ar)); }
public App() { this.Startup += new StartupEventHandler(App_Startup); this.Exit += new ExitEventHandler(App_Exit); AppDomain.CurrentDomain.UnhandledException += (sender, e) => { LogUnhandledException(e.ExceptionObject); }; NatHelper.BeginDiscover((ar) => NatHelper.EndDiscover(ar)); }