/// <summary> /// This is using the HTTP HEAD Method to check if the RSS Feed is modified after the supplied date /// </summary> /// <param name="updateTime">DateTime</param> /// <returns>true if the feed is newer</returns> public static bool IsRssModifiedAfter(DateTime updateTime) { DateTime lastModified = NetworkHelper.GetLastModified(new Uri(Rssfeed)); if (lastModified == DateTime.MinValue) { // Time could not be read, just take now and add one hour to it. // This assist BUG-1850 lastModified = DateTime.Now.AddHours(1); } return(updateTime.CompareTo(lastModified) < 0); }
/// <summary> /// This is using the HTTP HEAD Method to check if the RSS Feed is modified after the supplied date /// </summary> /// <param name="updateTime">DateTime</param> /// <returns>true if the feed is newer</returns> public static bool isRSSModifiedAfter(DateTime updateTime) { DateTime lastModified = NetworkHelper.GetLastModified(new Uri(RSSFEED)); return(updateTime.CompareTo(lastModified) < 0); }