<?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 : Canceling all queries in unit of work</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : Canceling all queries in unit of work</description>
  <pubDate>Fri, 24 Apr 2026 09:47:52 -700</pubDate>
  <lastBuildDate>Mon, 16 Apr 2012 17:46:27 -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=3392</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>Canceling all queries in unit of work :   There isn&amp;#039;t a way to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3392&amp;PID=13318#13318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1005" rel="nofollow">mgood</a><br /><strong>Subject:</strong> 3392<br /><strong>Posted:</strong> 16-Apr-2012 at 5:46pm<br /><br />There isn't a way to cancel all running queries on an EntityManager. In the unit of work, you basically have to keep track of your queries and then for each query you call EntityManager.CancelAsync(userState). Every asynchronous method in DevForce has a signature that lets you specify the userState. For example this could be a sequence number you keep incrementing. The userState also comes back in the corresponding event args of the Completed event, so you can remove an operation from your list once it completes. ]]>
   </description>
   <pubDate>Mon, 16 Apr 2012 17:46:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3392&amp;PID=13318#13318</guid>
  </item> 
  <item>
   <title>Canceling all queries in unit of work :  We have a process that uses...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3392&amp;PID=13314#13314</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> 3392<br /><strong>Posted:</strong> 16-Apr-2012 at 10:06am<br /><br />We have a process that uses unit of work and can run many serverside&nbsp;tasks at a time. We want the user to be able to click cancel and for that to cancel all of the queries for the unit of work. How should we go about that?]]>
   </description>
   <pubDate>Mon, 16 Apr 2012 10:06:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3392&amp;PID=13314#13314</guid>
  </item> 
 </channel>
</rss>