tag:blogger.com,1999:blog-5359546512544809971.post6455629047526178837..comments2024-03-29T00:46:49.972-07:00Comments on Jeremy Bytes: Task and Await: Consuming Awaitable MethodsJeremyhttp://www.blogger.com/profile/06749690234470413216noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-5359546512544809971.post-69219508661432508982015-09-28T09:19:25.970-07:002015-09-28T09:19:25.970-07:00Thanks, Scott. I'd be glad to come back and sh...Thanks, Scott. I'd be glad to come back and share more at Quicken Loans -- probably not permanently, but glad to do things regularly.Jeremyhttps://www.blogger.com/profile/06749690234470413216noreply@blogger.comtag:blogger.com,1999:blog-5359546512544809971.post-6985446045149603912015-09-27T16:38:29.223-07:002015-09-27T16:38:29.223-07:00Great article Jeremy... also saw you speak at the ...Great article Jeremy... also saw you speak at the Quicken Loans technical conference... great stuff there also. Would love to have you join us as a more permanent fixture. :)Scott Mayfieldhttps://www.blogger.com/profile/17635417281060822340noreply@blogger.comtag:blogger.com,1999:blog-5359546512544809971.post-5669527543931571452015-08-27T07:47:22.046-07:002015-08-27T07:47:22.046-07:00Hi Jeremy Awesome Stuff. I was craving to see Asyn...Hi Jeremy Awesome Stuff. I was craving to see Async and Await.<br /><br />Thanks A lot.<br /><br />FarahAnonymoushttps://www.blogger.com/profile/04661840485545026349noreply@blogger.comtag:blogger.com,1999:blog-5359546512544809971.post-62454500670372921542015-01-07T14:53:18.860-08:002015-01-07T14:53:18.860-08:00Hi Gizi. I have another article that covers the ba...Hi Gizi. I have another article that covers the basics of exception handling: http://jeremybytes.blogspot.com/2015/01/task-and-await-basic-exception-handling.html. Tasks are very flexible, and there are a number of approaches that we can take. I'm planning to cover more complex scenarios in future articles.<br /><br />Thanks,<br />JeremyJeremyhttps://www.blogger.com/profile/06749690234470413216noreply@blogger.comtag:blogger.com,1999:blog-5359546512544809971.post-49840667733329567122015-01-07T14:10:53.587-08:002015-01-07T14:10:53.587-08:00Thanks Jeremy, this was very useful. Can you add y...Thanks Jeremy, this was very useful. Can you add your recommendation how to handle exceptions in tasks, especially where you have several continued steps?<br />Thanks<br />Gizi Ben-TovimAnonymoushttps://www.blogger.com/profile/05597574870035467505noreply@blogger.comtag:blogger.com,1999:blog-5359546512544809971.post-61634484577396843132014-12-28T08:13:23.819-08:002014-12-28T08:13:23.819-08:00Hi, Vahid. Thanks for pointing to Stephen's pr...Hi, Vahid. Thanks for pointing to Stephen's project. Dealing with the synchronization context in a console application is a bit complex, and his AsyncContext class helps with that. I'll need to check out the project some more to see its capabilities.<br /><br />The example in the article shows the standard behavior that we get in the box. There are often ways to get around the limitations that we come across, but they often include quite a bit of code (I have some tests for APM methods that look a bit crazy). So I generally only deal with them if I really can't live without the functionality. And in the case of this console application, I lock up the main thread while the Task finishes, but adding "ContinueWith" to handle the Task manually isn't that complicated.<br /><br />Thanks,<br />JeremyJeremyhttps://www.blogger.com/profile/06749690234470413216noreply@blogger.comtag:blogger.com,1999:blog-5359546512544809971.post-85810717466399661472014-12-28T01:52:38.135-08:002014-12-28T01:52:38.135-08:00It's possible to use await in Main method. Mor...It's possible to use await in Main method. <a href="https://github.com/StephenCleary/AsyncEx/wiki/AsyncContext" rel="nofollow">More info here</a>وحيد نصيريhttps://www.blogger.com/profile/04454130327051686471noreply@blogger.com