我在一个网址“http://test.com/data.xml”我目前轮询有一个XML文档每秒转换XML的URL的IObservable <XDocument>
我想谈谈的这个池将XML源代码转换为IObservable <XDocument>
我在一个网址“http://test.com/data.xml”我目前轮询有一个XML文档每秒转换XML的URL的IObservable <XDocument>
我想谈谈的这个池将XML源代码转换为IObservable <XDocument>
这是否适合您?
Observable
.Interval(TimeSpan.FromSeconds(1.0))
.Select(_ => XDocument.Load("http://test.com/data.xml"));
你怎么可以改变上面只加载XDocument如果“http://test.com/data.xml”文件变化。以某种方式加入的http头请求之后? – 2012-02-06 13:13:29
检出http://stackoverflow.com/questions/9161364/retrieve-xdocument-only-when-modified-using-rx-webrequest-xdocument-load – 2012-02-06 19:28:21
Publish()不能与上述模式一起工作,这是非常重要的原因我有多个订户 – 2012-02-23 16:05:23
复制后http://stackoverflow.com/questions/9161364/retrieve-xdocument-only-when-modified-using-rx-webrequest-xdocument-load – 2012-02-06 19:28:05