From 2347b97474f136494169fa005fc79f3d4287f2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Wed, 23 Jul 2025 19:29:52 -0400 Subject: [PATCH] chore: configureawait --- .../ViewModels/NewVersionWindowViewModel.cs | 2 +- src/[ApplicationNameUpperCamelCase]/Views/MainWindow.axaml.cs | 4 ++-- .../Views/WindowsTitleBar.axaml.cs | 2 +- src/nullinside-api | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/[ApplicationNameUpperCamelCase]/ViewModels/NewVersionWindowViewModel.cs b/src/[ApplicationNameUpperCamelCase]/ViewModels/NewVersionWindowViewModel.cs index 48046ac..d7e7023 100644 --- a/src/[ApplicationNameUpperCamelCase]/ViewModels/NewVersionWindowViewModel.cs +++ b/src/[ApplicationNameUpperCamelCase]/ViewModels/NewVersionWindowViewModel.cs @@ -44,7 +44,7 @@ public NewVersionWindowViewModel() { Task.Factory.StartNew(async () => { GithubLatestReleaseJson? version = - await GitHubUpdateManager.GetLatestVersion("nullinside-development-group", "ApplicationNameUpperCamelCase"); + await GitHubUpdateManager.GetLatestVersion("nullinside-development-group", "ApplicationNameUpperCamelCase").ConfigureAwait(false); if (null == version) { return; diff --git a/src/[ApplicationNameUpperCamelCase]/Views/MainWindow.axaml.cs b/src/[ApplicationNameUpperCamelCase]/Views/MainWindow.axaml.cs index 42d6048..b15ada0 100644 --- a/src/[ApplicationNameUpperCamelCase]/Views/MainWindow.axaml.cs +++ b/src/[ApplicationNameUpperCamelCase]/Views/MainWindow.axaml.cs @@ -54,7 +54,7 @@ protected override void OnInitialized() { Task.Factory.StartNew(async () => { GithubLatestReleaseJson? serverVersion = - await GitHubUpdateManager.GetLatestVersion("nullinside-development-group", "ApplicationNameUpperCamelCase"); + await GitHubUpdateManager.GetLatestVersion("nullinside-development-group", "ApplicationNameUpperCamelCase").ConfigureAwait(false); string? localVersion = Assembly.GetEntryAssembly()?.GetName().Version?.ToString(); if (null == serverVersion || string.IsNullOrWhiteSpace(serverVersion.name) || string.IsNullOrWhiteSpace(localVersion)) { @@ -87,7 +87,7 @@ protected override void OnInitialized() { DataContext = vm }; - await versionWindow.ShowDialog(this); + await versionWindow.ShowDialog(this).ConfigureAwait(false); } catch { // do nothing, don't crash diff --git a/src/[ApplicationNameUpperCamelCase]/Views/WindowsTitleBar.axaml.cs b/src/[ApplicationNameUpperCamelCase]/Views/WindowsTitleBar.axaml.cs index 4610609..7deaa49 100644 --- a/src/[ApplicationNameUpperCamelCase]/Views/WindowsTitleBar.axaml.cs +++ b/src/[ApplicationNameUpperCamelCase]/Views/WindowsTitleBar.axaml.cs @@ -109,7 +109,7 @@ private async void SubscribeToWindowState() { while (hostWindow == null) { hostWindow = VisualRoot as Window; - await Task.Delay(50); + await Task.Delay(50).ConfigureAwait(true); } hostWindow.GetObservable(Window.WindowStateProperty).Subscribe(s => { diff --git a/src/nullinside-api b/src/nullinside-api index 6962fe9..30bc54a 160000 --- a/src/nullinside-api +++ b/src/nullinside-api @@ -1 +1 @@ -Subproject commit 6962fe933e6bfffb71a91293c522214491392980 +Subproject commit 30bc54a97a175b9626b8911a1070700c00ddd153