示例#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
文件: Updater.cs 项目: MASTER060/1
 public Updater(GithubProvider releaseProvider, string installedVersion)
 {
     _installedVersion = new Version(installedVersion);
     _releaseProvider  = releaseProvider;
 }