我对反应式扩展很感兴趣,但我找不到最新的教程。我开始使用Curing the asynchronous blues with the Reactive Extensions for .NET,但它已经过时了。我可以弄清楚一些变化,但我不能让很多例子工作。
我在网上找到了许多文章,主要是2009、2010年的文章,但它们也与当前版本不兼容。我对在Windows Phone和WebClient上使用Rx特别感兴趣:
WebClient wc = new WebClient();
var o = Observable.FromEvent<DownloadStringCompletedEventArgs>(wc, "DownloadStringCompleted").Select(newString => newString.EventArgs.Result);
// Subscribe to the observable, and set the label text
o.Subscribe(s => myLabel.Text = s);
// Start the download
wc.DownloadStringAsync(new Uri("http://www.data.com/service"));不再工作,用FromEventPattern替换FromEvent是不够的。
有没有人能告诉我最新的资源?
发布于 2013-04-03 09:52:35
到目前为止,帮助我理解Rx的最好的资源是:http://www.introtorx.com/
我认为这种情况发生在很多人身上,但是当你搜索关键词"Rx tutorial“时,你找不到这个网站。我想有人需要在网站上添加一些标签!
https://stackoverflow.com/questions/10011369
复制相似问题