Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public void ApplyScheduledUpdateProps(UpdateInfo updateInfo) => _updateRepository.SetCurrentVersion(updateInfo.GetVersion());