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); } }
public Updater(GithubProvider releaseProvider, string installedVersion) { _installedVersion = new Version(installedVersion); _releaseProvider = releaseProvider; }