tag:blogger.com,1999:blog-15136575.post3214052470957952111..comments2023-10-17T12:00:16.772+01:00Comments on Code rant: Using the Task Parallel Library with ASP.NET MVC for scalable web applicationsMike Hadlowhttp://www.blogger.com/profile/16441901713967254504noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-15136575.post-11690212950284483252011-11-28T21:51:50.465+00:002011-11-28T21:51:50.465+00:00Hello.
Stupid question: what happens if BeginExec...Hello.<br /><br />Stupid question: what happens if BeginExecuteReader throws? that will probably result in a non observable exception, right? in fact, if result (ie, the data reader) hasn't returned yet, your task.Result property might end up throwing. Since it's outside the try/finally, won't you end up with an orphan connection?Luis Abreuhttps://www.blogger.com/profile/17572421245148379119noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-35286275782209092512010-12-23T12:52:01.820+00:002010-12-23T12:52:01.820+00:00Hi Craig,
That's excellent work. I had a quic...Hi Craig,<br /><br />That's excellent work. I had a quick look at doing the same, but was defeated by the spaghetti code in the AsyncController, I didn't realise there was as better implementation in the futures assembly. Thanks for pointing that out. <br /><br />I'll update the post to point at your post and fork.Mike Hadlowhttps://www.blogger.com/profile/16441901713967254504noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-17521008263849561442010-12-23T12:06:46.747+00:002010-12-23T12:06:46.747+00:00Hi Mike,
I've forked your example on GitHub a...Hi Mike, <br />I've forked your example on GitHub and have implemented a controller action invoker to support async actions through Tasks.<br /><br />You can check it out here:<br />https://github.com/CraigCav/Suteki.AsyncMvcTpl<br /><br />And a quick summary on my blog here:<br />http://craigcav.wordpress.com/2010/12/23/asynchronous-mvc-using-the-task-parallel-library/Unknownhttps://www.blogger.com/profile/13085629452033393982noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-15535627826822996892010-11-09T13:04:27.183+00:002010-11-09T13:04:27.183+00:00Great post Mike.Great post Mike.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-80194952768091021602010-11-09T10:21:30.218+00:002010-11-09T10:21:30.218+00:00Hi Anonymous,
Your feedback could be very useful ...Hi Anonymous,<br /><br />Your feedback could be very useful here. If you let me know what concepts you are having trouble with, I can try and improve the post.Mike Hadlowhttps://www.blogger.com/profile/16441901713967254504noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-33481054862783565722010-11-09T05:43:16.044+00:002010-11-09T05:43:16.044+00:00Just a recommendation.Just a recommendation.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-37185754509232896972010-11-09T05:42:44.230+00:002010-11-09T05:42:44.230+00:00Hi, I didn't really get much of it, could you ...Hi, I didn't really get much of it, could you perhaps be more intermediate developer friendly next time and take more time to explain things?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-88388003892852800362010-11-05T08:38:36.714+00:002010-11-05T08:38:36.714+00:00Hi Brad,
That's a good suggestion. I might ha...Hi Brad,<br /><br />That's a good suggestion. I might have a look at the MVC3 source code and see how hard it would be.Mike Hadlowhttps://www.blogger.com/profile/16441901713967254504noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-89702705036777893842010-11-04T20:58:43.633+00:002010-11-04T20:58:43.633+00:00Mike, Thanks for a great intro into using the TPL ...Mike, Thanks for a great intro into using the TPL within a ASP.NET MVC context. I too, am not especially pleased in how polluted the controllers become in this scenario.<br /><br />The first thing that comes to mind though, is to perhaps inherit from controller and implement the async controller using TPL. Have you looked at this option?Bradnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-28427464780300159152010-11-04T15:29:25.461+00:002010-11-04T15:29:25.461+00:00I've wanted to take a look at the TPL for awhi...I've wanted to take a look at the TPL for awhile. Thanks for the example.Ryanhttp://code.ryanlwentzel.comnoreply@blogger.com