<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Rx Workshop: Unified Programming Model</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model/RSS"></atom:link>
	<image>
		<url>http://ak.channel9.msdn.com/ch9/6315/b834b233-4416-4b2e-a450-9f0a01896315/RxWorkshopUPM_100_ch9.jpg</url>
		<title>Channel 9 - Rx Workshop: Unified Programming Model</title>
		<link></link>
	</image>
	<description> Learn how to wrap existing event sources, including tasks, asynchronous methods, .NET events, etc. in observable sequences. Download the Challenge </description>
	<link></link>
	<language>en</language>
	<pubDate>Wed, 22 May 2013 20:16:23 GMT</pubDate>
	<lastBuildDate>Wed, 22 May 2013 20:16:23 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Rx Workshop: Unified Programming Model</title>
		<description>
			<![CDATA[<p>a pitty that nobody posted anything on te challange (or am I missing something?) so here is my *take* on it:</p><p><pre class="brush: csharp">            // Convert txt.TextChanged to IObservable&lt;EventPattern&lt;EventArgs&gt;&gt; and assign it to textChanged.
            var textChanged =
                Observable
                    .FromEventPattern(addHandler: evHandler =&gt; txt.TextChanged &#43;= evHandler,
                                      removeHandler: evHandler =&gt; txt.TextChanged -= evHandler)
                    .Select(ev =&gt; ((TextBox) ev.Sender).Text)
                    .Throttle(TimeSpan.FromMilliseconds(300));

            // Convert BeginMatch/EndMatch to Func&lt;string, IObservable&lt;DictionaryWord[]&gt;&gt; and assign it to getSuggestions.
            var getSuggestions = Observable.FromAsyncPattern&lt;string, DictionaryWord[]&gt;(begin: BeginMatch, end: EndMatch);

            var results = from text in textChanged
                          where text.Length &gt;= 3
                          from suggestions in getSuggestions(text)
                          select suggestions;
</pre></p><p>As you might see I took the freedom to change some little pieces.</p><p>First I want to get the text from textChanged (just like in the cast) and second I don't want to fire&nbsp;7 webrequests in succesion to get the suggestions for &quot;automobile&quot; while typing, so I throttle the textChanged-Observable to 300ms.</p><p>posted by CbrAInK</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634453531110000000</link>
		<pubDate>Mon, 04 Jul 2011 05:11:51 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634453531110000000</guid>
		<dc:creator>CbrAInK</dc:creator>
	</item>
	<item>
		<title>Re: Rx Workshop: Unified Programming Model</title>
		<description>
			<![CDATA[This is fun&#33;<br><br>&#60;csharp&#62;<br><br>var textChanged &#61; Observable.FromEventPattern&#60;EventArgs&#62;&#40;txt, &#34;TextChanged&#34;&#41;&#59;<br><br>var getSuggestions &#61; Observable.FromAsyncPattern&#60;string, DictionaryWord&#91;&#93;&#62;&#40;BeginMatch, EndMatch&#41;&#59;<br><br>&#60;&#47;csharp&#62;<p>posted by c t</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634454086870000000</link>
		<pubDate>Mon, 04 Jul 2011 20:38:07 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634454086870000000</guid>
		<dc:creator>c t</dc:creator>
	</item>
	<item>
		<title>Re: Rx Workshop: Unified Programming Model</title>
		<description>
			<![CDATA[ <p>Haven't watch the video yet, but, I like what has been promised from the summary. And a lot of rainbows <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-2.gif?v=c9' alt='Big Smile' />.</p><p>posted by magicalclick</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634454291120000000</link>
		<pubDate>Tue, 05 Jul 2011 02:18:32 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634454291120000000</guid>
		<dc:creator>magicalclick</dc:creator>
	</item>
	<item>
		<title>Re: Rx Workshop: Unified Programming Model</title>
		<description>
			<![CDATA[<p>As more of an assembler, rather than programmer or developer, I just kept removing things and plugging different things together and it actually worked first time!?! So here is my effort.</p><p><pre class="brush: csharp">var textChanged = Observable.FromEventPattern(txt, &quot;TextChanged&quot;);

var getSuggestions = Observable.FromAsyncPattern&lt;string, DictionaryWord[]&gt;(BeginMatch, EndMatch);</pre></p><p>&nbsp;</p><p>posted by N2Cheval</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634454648380000000</link>
		<pubDate>Tue, 05 Jul 2011 12:13:58 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634454648380000000</guid>
		<dc:creator>N2Cheval</dc:creator>
	</item>
	<item>
		<title>Re: Rx Workshop: Unified Programming Model</title>
		<description>
			<![CDATA[I&#39;m trying to follow along with this example using VB. This is the code I have &#58;<br>Public Class Form1<br><br>    Private Sub Form1_Load&#40;sender As System.Object, e As System.EventArgs&#41; Handles MyBase.Load<br><br>        Dim res &#61; From evt In Observable.FromEventPattern&#40;TextBox1, &#34;TextChanged&#34;&#41;<br>                 Select CType&#40;evt.Sender, TextBox&#41;.Text<br><br><br>        res.Subscribe&#40;Function&#40;s&#41; Me.Text &#61; s&#41;<br><br>    End Sub<br>End Class<br><br>I get no errors but nothing happens.  What am I doing wrong &#63;<br>Thanks<p>posted by Lauren</p>]]>
		</description>
		<link>http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634492874780000000</link>
		<pubDate>Thu, 18 Aug 2011 18:04:38 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/Series/Rx-Workshop/Rx-Workshop-Unified-Programming-Model#c634492874780000000</guid>
		<dc:creator>Lauren</dc:creator>
	</item>
</channel>
</rss>