Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 URL “http://test.com/data.xml” 有一个 XML 文档,我目前每秒轮询一次
我想将 XML 源的这种池化为 IObservable<XDocument>
这对你有用吗?
Observable .Interval(TimeSpan.FromSeconds(1.0)) .Select(_ => XDocument.Load("http://test.com/data.xml"));