public UnhandledExceptionListener()
        {
            Asserter.AssertIsNull(_instance, "UnhandledExceptionListener can only be created 1 time per application domain.");

            _instance = this;
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
        }
Exemplo n.º 2
0
        public UnhandledExceptionListener()
        {
            Asserter.AssertIsNull(_instance, "UnhandledExceptionListener can only be created 1 time per application domain.");

            _instance = this;
            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
        }