/// <summary> /// Loads the news feeds from the SUN forum /// </summary> public void LoadNewsFeeds() { var url = ConfigurationManager.AppSettings["NewsFeedUrl"]; if (string.IsNullOrEmpty(url)) { ViewModelTools.Logger.ErrorFormat("No Rss feed url defined in the application configuration file!"); throw new ConfigurationErrorsException("No Rss feed url defined in the application configuraito file!"); } var reader = new Core.Feeds.RssNewsFeedReader(); this.NewsFeeds = reader.GetNewsFeeds(url).OrderByDescending(x => x.PublishDate).Take(10); }
/// <summary> /// Loads the news feeds from the SUN forum /// </summary> public void LoadNewsFeeds() { var url = ConfigurationManager.AppSettings["NewsFeedUrl"]; if (string.IsNullOrEmpty(url)) { ViewModelTools.Logger.ErrorFormat("No Rss feed url defined in the application configuration file!"); throw new ConfigurationErrorsException("No Rss feed url defined in the application configuraito file!"); } var reader = new Core.Feeds.RssNewsFeedReader(); this.NewsFeeds = reader.GetNewsFeeds(url).OrderByDescending(x => x.PublishDate).Take(10); }