public App() { InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; Logger.InitializeDefaults(Path.Combine(Global.DataDir, "Logs.txt")); Task.Run(async() => { await Global.InitializeNoWalletAsync(); }).Wait(); var walletExists = WalletController.WalletExists(Global.Network); if (walletExists) { WalletController.LoadWalletAsync(Global.Network); } var bs = new AppBootstrapper(walletExists); MainPage = bs.CreateMainPage(); }