public ApplicationUpdater() { var updateInfoFactory = GitHubUpdateInfo.Factory.NewWithVersionByTagName(); _updateRepository = new GitHubUpdateRepository(GitHubDownloadType.Assets, updateInfoFactory, Program.Name, "h0useRus/StarCitizen"); _updateRepository.SetCurrentVersion(Program.Version.ToString(3)); _updateRepository.MonitorStarted += OnMonitorStarted; _updateRepository.MonitorStopped += OnMonitorStopped; _updateRepository.MonitorNewVersion += OnMonitorNewVersion; }
public void ApplyScheduledUpdateProps(UpdateInfo updateInfo) => _updateRepository.SetCurrentVersion(updateInfo.GetVersion());