<?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 : Dynamic AsyncParallelTask?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Dynamic AsyncParallelTask?</description>
  <pubDate>Sun, 12 Apr 2026 10:06:52 -700</pubDate>
  <lastBuildDate>Wed, 28 Jul 2010 15:40:51 -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=2026</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>Dynamic AsyncParallelTask? : What part of this doesn&#8217;t work?  Each...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2026&amp;PID=7878#7878</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 2026<br /><strong>Posted:</strong> 28-Jul-2010 at 3:40pm<br /><br /><DIV>What part of this doesn’t work?</DIV><DIV></DIV><DIV>Each time you add an async query the return value is a new AsyncParallelTask.&nbsp; So&nbsp;you can do this:</DIV><DIV><EM>var asyncParallelTask = AsyncParallelTask.Create();</EM></DIV><DIV>&nbsp;</DIV><DIV><EM>var t2 = asyncParallelTask.AddAsyncQuery(1, x =&gt; mgr.Customers);</EM></DIV><DIV><EM>var t3 = t2.AddAsyncQuery(2, x =&gt; mgr.Employees);</EM></DIV><DIV><EM>t3.Execute(…);</EM></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 15:40:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2026&amp;PID=7878#7878</guid>
  </item> 
  <item>
   <title>Dynamic AsyncParallelTask? :      Is there a way to create...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2026&amp;PID=7866#7866</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=768" rel="nofollow">moflaherty</a><br /><strong>Subject:</strong> 2026<br /><strong>Posted:</strong> 28-Jul-2010 at 12:22pm<br /><br /><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>Is there a way to create AsyncParallelTask as a variable and then add queries to it? For example:</DIV><DIV>&nbsp;</DIV><DIV><EM>var asyncParallelTask = AsyncParallelTask.Create();</EM></DIV><DIV><EM></EM>&nbsp;</DIV><DIV><EM>asyncParallelTask.AddAsyncQuery(1, x =&gt; mgr.Customers);</EM></DIV><DIV><EM>asyncParallelTask.AddAsyncQuery(2, x =&gt; mgr.Employees);</EM></DIV><DIV><EM></EM>&nbsp;</DIV><DIV><EM>asyncParallelTask.Execute(cb =&gt; {<BR>((EntityFetchedEventArgs &lt;Customer&gt;)cb.CompletionMap&#091;1&#093;)<BR>.Result.ForEach(c =&gt; Debug.WriteLine(c.CompanyName));<BR>((EntityFetchedEventArgs &lt;Employee&gt;)cb.CompletionMap&#091;2&#093;)<BR>.Result.ForEach(e =&gt; Debug.WriteLine(e.LastName));<BR>});<BR></EM></DIV><DIV>It would sure be nice to dynamically build these, so I want to ask before I give up on this approach. Obviously, the above does not work.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 12:22:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2026&amp;PID=7866#7866</guid>
  </item> 
 </channel>
</rss>