protected override async Task InitializeAsync() { SafeAsync.Run(() => Task.Run(async() => { IsLoading.Value = true; await Task.WhenAll( SafeAsync.RunAsync(FetchNewsAsync), SafeAsync.RunAsync(FetchLatestYouTubeAsync)); IsLoading.Value = false; await CheckForUpdatesAsync(); }), Tracer.Error); await base.InitializeAsync(); }
protected override async Task InitializeAsync() { IsVREnabled.Value = _settingsService.GetValue(SettingsCategories.LaunchOptions, SettingsKeys.IsVREnabled, false); SafeAsync.Run(() => Task.Run(async() => { IsLoading.Value = true; await Task.WhenAll( SafeAsync.RunAsync(FetchNewsAsync), SafeAsync.RunAsync(FetchLatestYouTubeAsync)); IsLoading.Value = false; await CheckForUpdatesAsync(); }), Tracer.Error); await base.InitializeAsync(); }