<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Best way to handle a cancelled task</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Best way to handle a cancelled task</description>
  <pubDate>Sat, 11 Apr 2026 07:38:04 -700</pubDate>
  <lastBuildDate>Thu, 24 Jan 2013 09:10:44 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3940</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Best way to handle a cancelled task : Thanks Mark that did the trick....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3940&amp;PID=15706#15706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 3940<br /><strong>Posted:</strong> 24-Jan-2013 at 9:10am<br /><br />Thanks Mark that did the trick. I should have known to look in the error handler class...]]>
   </description>
   <pubDate>Thu, 24 Jan 2013 09:10:44 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3940&amp;PID=15706#15706</guid>
  </item> 
  <item>
   <title>Best way to handle a cancelled task : Hi John,If you look in TempHire...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3940&amp;PID=15705#15705</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3940<br /><strong>Posted:</strong> 24-Jan-2013 at 8:26am<br /><br />Hi John,<br><br>If you look in TempHire in the ErrorHandler class you will see it checks for TaskCanceledExceptions and simply ignores it. This way you don't have to write try/catch code everywhere.<br>]]>
   </description>
   <pubDate>Thu, 24 Jan 2013 08:26:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3940&amp;PID=15705#15705</guid>
  </item> 
  <item>
   <title>Best way to handle a cancelled task : So I am still getting used to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3940&amp;PID=15704#15704</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1009" rel="nofollow">JohnBloom</a><br /><strong>Subject:</strong> 3940<br /><strong>Posted:</strong> 24-Jan-2013 at 7:53am<br /><br />So I am still getting used to the new DevForce/Cocktail stuff. One thing that has been happening is that when a user clicks cancel on a dialog the Task throws a task cancelled exception. I read somewhere to handle cancelled tasks with a try/catch. I did that twice and realized that was bad advice. I have too many dialogs and I am not about to litter my code with try/catch blocks.&nbsp;<div><br></div><div>I looked at the temphire app and I didn't really see how it was handling the cancel. I am guessing it is in how you implement it. When I implement it this way:</div><div><div><pre style="font-family: C&#111;nsolas; font-size: 13px; -: initial initial; -repeat: initial initial;"><span style="color:blue;">await</span>&nbsp;_DialogManager.ShowDialogAsync(vm.Start(ServiceInstance.ID),&nbsp;<span style="color:#2b91af;">DialogButtons</span>.OkCancel);</pre></div><div>&nbsp;I get exceptions. What do I need to change?</div></div>]]>
   </description>
   <pubDate>Thu, 24 Jan 2013 07:53:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3940&amp;PID=15704#15704</guid>
  </item> 
 </channel>
</rss>