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

我与影子孤独终老i 提交于 2019-12-03 22:14:15

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!