/// <summary> /// check codeplex's rss feed to see if we have a new release available. /// Returns not null info about obtained current release. /// ReleaseInfo.NotAvailable in a case, new version was not checked or current version is the latest. /// </summary> private static ReleaseInfo TryCheckForCodeplexRelease(DateTime buildDate) { var checksFile = new UpdateChecksFile(); if (!checksFile.ShouldCheckForUpdate) { return(ReleaseInfo.NotAvailable); } ReleaseInfo downLoaded = DownLoadLatestReleaseInfo(buildDate); checksFile.WriteLastCheck(); return(downLoaded); }
/// <summary> /// check codeplex's rss feed to see if we have a new release available. /// Returns not null info about obtained current release. /// ReleaseInfo.NotAvailable in a case, new version was not checked or current version is the latest. /// </summary> private ReleaseInfo TryCheckForPublishedRelease(Version currentVersion) { var checksFile = new UpdateChecksFile(); if (!checksFile.ShouldCheckForUpdate) { return(ReleaseInfo.NotAvailable); } ReleaseInfo downLoaded = this.DownLoadLatestReleaseInfo(currentVersion); checksFile.WriteLastCheck(); return(downLoaded); }
/// <summary> /// check codeplex's rss feed to see if we have a new release available. /// Returns not null info about obtained current release. /// ReleaseInfo.NotAvailable in a case, new version was not checked or current version is the latest. /// </summary> private static ReleaseInfo TryCheckForCodeplexRelease(DateTime buildDate) { var checksFile = new UpdateChecksFile(); if (!checksFile.ShouldCheckForUpdate) return ReleaseInfo.NotAvailable; ReleaseInfo downLoaded = DownLoadLatestReleaseInfo(buildDate); checksFile.WriteLastCheck(); return downLoaded; }