Artemis.Utilities.Updater.UpdateApp C# (CSharp) Метод

UpdateApp() публичный статический Метод

Uses Squirrel to update the application through GitHub
public static UpdateApp ( ) : void
Результат void
        public static async void UpdateApp()
        {
            var settings = SettingsProvider.Load<GeneralSettings>();
            Logger.Info("Update check enabled: {0}", settings.AutoUpdate);

            // Only update if the user allows it
            if (!SettingsProvider.Load<GeneralSettings>().AutoUpdate)
                return;
            
            // Pre-release
            // using (var mgr = UpdateManager.GitHubUpdateManager("https://github.com/SpoinkyNL/Artemis", null, null, null, true))
            // Release
            using (var mgr = UpdateManager.GitHubUpdateManager("https://github.com/SpoinkyNL/Artemis"))
            {
                try
                {
                    await mgr.Result.UpdateApp();
                    Logger.Info("Update check complete");
                    mgr.Result.Dispose(); // This seems odd but if it's not disposed and exception is thrown
                }
                catch (Exception e)
                {
                    // These exceptions should only really occur when running from VS
                    Logger.Error(e, "Update check failed");
                    mgr.Result.Dispose();
                }
            }
        }