Пример #1
0
        public IEnumerable <FeedItem> Load(FeedRequest request)
        {
            using var reader = XmlReader.Create(request.Uri.ToString());
            var feed = SyndicationFeed.Load(reader);

            return(feed.Items
                   .Select(item => item.ToFeedItem())
                   .Where(item => request.Filter.IsSatisfiedBy(item)));
        }
 public IEnumerable <FeedItem> Load([FromBody] FeedRequest request)
 {
     return(_feedLoader.Load(request));
 }