反应扩展(RX)的教程,是最新的 [英] Reactive Extension (Rx) tutorial that is up to date
问题描述
我在无扩展颇感兴趣,但我不能找到一个最新的教程。我开始与固化异步蓝调与.NET 无功扩展,但它是过时的。我可以找出一些变化,但我不能得到的例子很多工作。
I am quite interested in Reactive Extensions but I cannot find an up to date tutorial. I started with Curing the asynchronous blues with the Reactive Extensions for .NET but it is out of date. I can figure out some changes but I could not get many examples working.
我在网上找到了很多文章,主要是从2009,2010年,但他们也是不符合的当前版本。我在使用接收随着Windows Phone和Web客户端特别感兴趣:
I found many articles on the web, mainly from 2009,2010 but they are also incompatible with the current release. I am especially interested in using Rx with Windows Phone and WebClient:
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"));
不要再工作和更换 FromEvent
与 FromEventPattern
是远远不够的。
有人可以点我一个最新的资源?
Can somebody point me to an up to date resource?
推荐答案
在学习接收的第一件事情是了解背后的IObservable的理念和它如何基于推送性质与IEnumerable的比较。我建议以下一个一个很好的解释:的 A [诺特尔]简单教程无扩展
When learning Rx the first thing is to understand the philosophy behind IObservable and how it's push based nature compares with IEnumerable. I suggest the following one for a good explanation: A[nother] Simpler Tutorial for Reactive Extensions
坎贝尔利具有良好的一系列解释API和何时使用它们。 他还试图使它保持最新与最新版本:的无功用于扩展.NET中介绍该系列现在可作为一本书的介绍RX
Lee Campbell has nice series explaining the api and when to use them. He also tries to keep it up to date with latest releases: Reactive Extensions for .NET an Introduction
The series is now available as a book at Introduction to Rx
顺便说一句,我也写了一个博客张贴关于解决现实生活中的问题与RX:的从数据库使用流数据的反应扩展
By the way, I have also written a blog post about solving real life problem with rx: Using Reactive Extensions for Streaming Data from Database
希望这有助于。
这篇关于反应扩展(RX)的教程,是最新的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!