Пример #1
0
 private List <FeedItem> GetRssFeed()
 {
     using (var reader = XmlReader.Create(_feedUrl))
     {
         try
         {
             return(SyndicationFeed.Load(reader)
                    .Items
                    .Select(x => FeedItem.AsFeedItem(x))
                    .ToList());
         }
         catch
         {
             return(new List <FeedItem>());
         }
     }
 }