What is the right/best way to get data from an RSS feed using ASP.Net Core 1.0 (RC2) in C#.
I want to work with the data in the RSS feed from my Wordpress blog which is https://blogs.msdn.microsoft.com/martinkearn/feed/
I know that in ASP.net 4.x, you'd use RssReader
or SyndicationFeed
but I cannot find an equivalent for ASP.net core.
This is as far as I have got which returns the raw feed but I do not know how to extract the data from it. I want to enumerate the items and get the title
and description
from each one
var feedUrl = "https://blogs.msdn.microsoft.com/martinkearn/feed/";
using (var client = new HttpClient())
{
client.BaseAddress = new Uri(feedUrl);
var responseMessage = await client.GetAsync(feedUrl);
var responseString = await responseMessage.Content.ReadAsStringAsync();
}