开发者

Is it possible to observe Rss feed change in C#?

I want to create a service that would listen to few Rss feeds and parse new feeds to jSon for further use. Is it possible to observe to feed c开发者_如何学Changes and if yes then how?

thanks


Check out the System.ServiceModel.Syndication.SyndicationFeed namespace in the framework - it has pretty much everything you need to download feeds. Scott Guthrie has a couple of good example blog posts about reading feeds here and here.


The only way to observe RSS feed changes is to poll the feed by requesting it over a set interval of time. This is because a feed is typically delivered over HTTP, which is a stateless request-response protocol and not a publish-subscribe protocol.


I suggest you check out RSS.NET, per it's website it can listen for changes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜