Exemple #1
0
        public App()
        {
            AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
            {
                LogUnhandledException(e.ExceptionObject);
            };

            NatHelper.BeginDiscover((ar) => NatHelper.EndDiscover(ar));
        }
Exemple #2
0
        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));
        }