Пример #1
0
        public static void AddUpdate(string id, GithubProvider provider, string installedVersion)
        {
            var updater = new Updater(provider, installedVersion);

            if (_updaters.ContainsKey(id))
            {
                _updaters[id] = updater;
            }
            else
            {
                _updaters.Add(id, updater);
            }
        }
Пример #2
0
 public Updater(GithubProvider releaseProvider, string installedVersion)
 {
     _installedVersion = new Version(installedVersion);
     _releaseProvider  = releaseProvider;
 }