<?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>Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx</link><description>ASP.NET Web API supports asynchronous actions using the new Task-based programming model introduced in .NET 4. In .NET 4.5 the model has improved further and in addition is supported directly from C# using the new async and await keywords (see “ Visual</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx#10381036</link><pubDate>Thu, 27 Dec 2012 21:55:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10381036</guid><dc:creator>Srigopal Chitrapu</dc:creator><description>&lt;p&gt;Nice Example, which i am looking for.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10381036" width="1" height="1"&gt;</description></item><item><title>re: Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx#10273667</link><pubDate>Mon, 27 Feb 2012 23:37:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10273667</guid><dc:creator>Aliostad</dc:creator><description>&lt;p&gt;Just reading the headline I assumed this is to do with HTTP chunked encoding and I was surprised that the client side of it is done since AFAIK IIS does not support chunked encoding from the client. Is that statement still true?&lt;/p&gt;
&lt;p&gt;Also I am wondering, how would be define that in a response? Do I need to set a property to chunked encoding? &lt;/p&gt;
&lt;p&gt;Also would these Task&amp;lt;T&amp;gt;s and Tasks use the default scheduler - hence suffocate the ThreadPool threads? And as such, should we set a higher value for Min and Max of ThreadPool threads?&lt;/p&gt;
&lt;p&gt;Sorry this is already three questions? Thanks :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10273667" width="1" height="1"&gt;</description></item><item><title>re: Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx#10273133</link><pubDate>Sun, 26 Feb 2012 14:56:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10273133</guid><dc:creator>Radenko Zec</dc:creator><description>&lt;p&gt;What do you mean by talks to backend ? For example what do you recommend if my action just read data from Sql Server database based on some passed parameters (simple select statement with where) and returns JSON result ? Is it smart to use tasks here or not ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10273133" width="1" height="1"&gt;</description></item><item><title>re: Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx#10273132</link><pubDate>Sun, 26 Feb 2012 14:48:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10273132</guid><dc:creator>Henrik F Nielsen</dc:creator><description>&lt;p&gt;A good rule of thumb is whether the action does any I/O (e.g. reading or writing to the network). For example, if an action talks to a backend, performs some form of aggregation of other services, or reads data from the request, then using Tasks is a good idea.&lt;/p&gt;
&lt;p&gt;If this is not the case then as a general rule not using tasks is fine. There are of course exceptions to this rule such as actions doing parallelizable data crunching like ray tracing but that is rare in my experience.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10273132" width="1" height="1"&gt;</description></item><item><title>re: Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx#10273103</link><pubDate>Sun, 26 Feb 2012 10:41:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10273103</guid><dc:creator>Radenko Zec</dc:creator><description>&lt;p&gt;Do you recommend using Tasks for every action in WebApi to improve scalability or just for long running actions ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10273103" width="1" height="1"&gt;</description></item><item><title>re: Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx#10272990</link><pubDate>Sat, 25 Feb 2012 21:42:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10272990</guid><dc:creator>Henrik F Nielsen</dc:creator><description>&lt;p&gt;Thanks for asking -- I did mean HttpContent because it applies to both client and server side. HttpRequestMessage, HttpResponseMessage, HttpContent, etc. sit on both the client side (as part of HttpClient) and on the server side (as part of ASP.NET Web API). That is, the way you can do push on client side works identical on server side.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Henrik&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10272990" width="1" height="1"&gt;</description></item><item><title>re: Async Streaming in ASP.NET Web API</title><link>http://blogs.msdn.com/b/henrikn/archive/2012/02/24/async-actions-in-asp-net-web-api.aspx#10272929</link><pubDate>Sat, 25 Feb 2012 17:17:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10272929</guid><dc:creator>James Manning </dc:creator><description>&lt;p&gt;Small typo? I&amp;#39;m assuming you meant HttpClient?&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;In the previous blog “Push and Pull Streams using HttpClient” we described how to use push and pull streams with **HttpContent**&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10272929" width="1" height="1"&gt;</description></item></channel></rss>