/// <summary> /// Provides an opportunity to hook into the application object. /// </summary> protected virtual void PrepareApplication() { AppDomain.CurrentDomain.UnhandledException += (sender, args) => OnUnhandledException(args.ExceptionObject as Exception); MainThreadDispatcher.RegisterUnhandledExceptionCallback(OnUnhandledException); }
private void OnDestroy() { _instance = null; }