Creates the singleton application object. This is the first line of authored code executed, and as such is the logical equivalent of main() or WinMain().
| 48 | /// executed, and as such is the logical equivalent of main() or WinMain(). |
| 49 | /// </summary> |
| 50 | App::App() |
| 51 | { |
| 52 | Suspending({ this, &App::OnSuspending }); |
| 53 | Resuming({this, &App::OnResuming}); |
| 54 | |
| 55 | // Resuming({ this, &AppOnResuming }); |
| 56 | |
| 57 | #if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION |
| 58 | UnhandledException([this](IInspectable const&, UnhandledExceptionEventArgs const& e) |
| 59 | { |
| 60 | if (IsDebuggerPresent()) |
| 61 | { |
| 62 | auto errorMessage = e.Message(); |
| 63 | __debugbreak(); |
| 64 | } |
| 65 | }); |
| 66 | #endif |
| 67 | } |
| 68 | |
| 69 | /// <summary> |
| 70 | /// Invoked when the application is launched normally by the end user. Other entry points |
nothing calls this directly
no outgoing calls
no test coverage detected