<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ParallelExtensionsExtras Tour - #16 - Async Tasks for WebClient, SmtpClient, and Ping</title><link>http://blogs.msdn.com/b/pfxteam/archive/2010/05/04/10007557.aspx</link><description>(The full set of ParallelExtensionsExtras Tour posts is available here .) 
 
 
 
 The Task Parallel Library isn&amp;rsquo;t just about CPU-bound operations. The Task class is a great representation for any asynchronous operation, even those implemented</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: ParallelExtensionsExtras Tour - #16 - Async Tasks for WebClient, SmtpClient, and Ping</title><link>http://blogs.msdn.com/b/pfxteam/archive/2010/05/04/10007557.aspx#10386703</link><pubDate>Mon, 21 Jan 2013 01:57:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10386703</guid><dc:creator>Stephen Toub - MSFT</dc:creator><description>&lt;p&gt;@huvar: It&amp;#39;s an extension method (&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/bb383977(v=vs.110).aspx"&gt;msdn.microsoft.com/.../bb383977(v=vs.110).aspx&lt;/a&gt;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10386703" width="1" height="1"&gt;</description></item><item><title>re: ParallelExtensionsExtras Tour - #16 - Async Tasks for WebClient, SmtpClient, and Ping</title><link>http://blogs.msdn.com/b/pfxteam/archive/2010/05/04/10007557.aspx#10386505</link><pubDate>Sat, 19 Jan 2013 14:20:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10386505</guid><dc:creator>huvar</dc:creator><description>&lt;p&gt;Hey&lt;/p&gt;
&lt;p&gt;I may be missing something basic but howcome does this method:&lt;/p&gt;
&lt;p&gt;namespace System.Net&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;public static class WebClientExtensions&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static Task&amp;lt;byte[]&amp;gt; DownloadDataTask(this WebClient webClient, string address);&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;is called like this:&lt;/p&gt;
&lt;p&gt;return new WebClient().DownloadDataTask(url)	&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10386505" width="1" height="1"&gt;</description></item><item><title>re: ParallelExtensionsExtras Tour - #16 - Async Tasks for WebClient, SmtpClient, and Ping</title><link>http://blogs.msdn.com/b/pfxteam/archive/2010/05/04/10007557.aspx#10299519</link><pubDate>Tue, 01 May 2012 14:50:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10299519</guid><dc:creator>Stephen Toub - MSFT</dc:creator><description>&lt;p&gt;Niclas, if you need that level of control, you can use HttpWebRequest/Response or the new HttpClient type in .NET 4.5. &amp;nbsp;Both of those provide asynchronous capabilities and support providing content-type information.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10299519" width="1" height="1"&gt;</description></item><item><title>re: ParallelExtensionsExtras Tour - #16 - Async Tasks for WebClient, SmtpClient, and Ping</title><link>http://blogs.msdn.com/b/pfxteam/archive/2010/05/04/10007557.aspx#10299257</link><pubDate>Mon, 30 Apr 2012 20:26:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10299257</guid><dc:creator>Niclas</dc:creator><description>&lt;p&gt;Hi there, &lt;/p&gt;
&lt;p&gt;I working on &amp;nbsp;a program that spiders the web for images ant it seem that your code above could speed up things a bit.&lt;/p&gt;
&lt;p&gt;On question, in the continuation task i need to know what type of Content-Type was returned for a particular task, is it possible?&lt;/p&gt;
&lt;p&gt;Could you guide me in the right direction how this would be done?&lt;/p&gt;
&lt;p&gt;Cheers Niclas&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10299257" width="1" height="1"&gt;</description></item><item><title>re: ParallelExtensionsExtras Tour - #16 - Async Tasks for WebClient, SmtpClient, and Ping</title><link>http://blogs.msdn.com/b/pfxteam/archive/2010/05/04/10007557.aspx#10132385</link><pubDate>Mon, 21 Feb 2011 21:46:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10132385</guid><dc:creator>Stephen Toub - MSFT</dc:creator><description>&lt;p&gt;Hi Luka-&lt;/p&gt;
&lt;p&gt;Such extensions are available as part of our .NET 4 samples at &lt;a rel="nofollow" target="_new" href="http://code.msdn.microsoft.com/ParExtSamples"&gt;code.msdn.microsoft.com/ParExtSamples&lt;/a&gt;, as well as built into the Async CTP available for download from &lt;a rel="nofollow" target="_new" href="http://msdn.com/vstudio/async"&gt;http://msdn.com/vstudio/async&lt;/a&gt;.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10132385" width="1" height="1"&gt;</description></item><item><title>re: ParallelExtensionsExtras Tour - #16 - Async Tasks for WebClient, SmtpClient, and Ping</title><link>http://blogs.msdn.com/b/pfxteam/archive/2010/05/04/10007557.aspx#10131742</link><pubDate>Sat, 19 Feb 2011 13:36:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10131742</guid><dc:creator>Luka</dc:creator><description>&lt;p&gt;Where&amp;#39;s the download for the WebClient Async Tasks ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10131742" width="1" height="1"&gt;</description></item></channel></rss>