From c6853601acb09a88f46b52a527abd6aa446eb772 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Fri, 20 Feb 2026 21:00:48 +0100 Subject: [PATCH] Rename Update to UpdateAsync --- AlwaysUpToDate.Test/Program.cs | 2 +- AlwaysUpToDate/DownloadManager.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AlwaysUpToDate.Test/Program.cs b/AlwaysUpToDate.Test/Program.cs index b183bf1..daab61d 100644 --- a/AlwaysUpToDate.Test/Program.cs +++ b/AlwaysUpToDate.Test/Program.cs @@ -34,7 +34,7 @@ internal class Program if (char.ToLower(input) == 'y') { - await updater.Update(); + await updater.UpdateAsync(); } } diff --git a/AlwaysUpToDate/DownloadManager.cs b/AlwaysUpToDate/DownloadManager.cs index 8cdbc3f..839fa6d 100644 --- a/AlwaysUpToDate/DownloadManager.cs +++ b/AlwaysUpToDate/DownloadManager.cs @@ -41,7 +41,7 @@ namespace AlwaysUpToDate public delegate void UpdateAvailableHandler(string version, string changelogUrl); /// - /// Occurs when a non-mandatory update is available. Call to begin downloading. + /// Occurs when a non-mandatory update is available. Call to begin downloading. /// public event UpdateAvailableHandler UpdateAvailable; @@ -157,7 +157,7 @@ namespace AlwaysUpToDate /// /// A task that represents the asynchronous update operation. /// The updater has been disposed. - public async Task Update() + public async Task UpdateAsync() { ThrowIfDisposed(); if (!string.IsNullOrWhiteSpace(updateUrl) && Interlocked.CompareExchange(ref updating, 1, 0) == 0) @@ -212,7 +212,7 @@ namespace AlwaysUpToDate } else { - await Update(); + await UpdateAsync(); } } else