<?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 : Can&#039;t get AsyncSerialTask to work</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Can&#039;t get AsyncSerialTask to work</description>
  <pubDate>Sun, 12 Apr 2026 02:28:35 -700</pubDate>
  <lastBuildDate>Thu, 25 Mar 2010 18:18:41 -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=1697</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>Can&#039;t get AsyncSerialTask to work :  Hi Tim,   The &amp;#034;args =&amp;gt;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1697&amp;PID=6415#6415</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 25-Mar-2010 at 6:18pm<br /><br /><FONT size=2><DIV>Hi Tim, </DIV><DIV>&nbsp;</DIV><DIV>The "args =&gt; args.Result.First()" expression is not a query (which is where the argument mismatch is coming from) and doesn't need to be chained asynchronously.&nbsp; You can write it without it and just take args.Result.First() in your handler:</DIV><DIV>&nbsp;</DIV><DIV>rootTask<BR>.AddAsyncQuery((code) =&gt; mgr.Suffixes.Where(s =&gt; s.Code == code))<BR>.Execute("Jr", asyncSerCompletedHandler);&nbsp; // do args.Result.First() in the handler</FONT><BR><FONT size=2></FONT></DIV><DIV>You can also write the handler inline with the Execute() if you don't want to define a separate method for it.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 25 Mar 2010 18:18:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1697&amp;PID=6415#6415</guid>
  </item> 
  <item>
   <title>Can&#039;t get AsyncSerialTask to work : I have tried for several hours...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1697&amp;PID=6408#6408</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=643" rel="nofollow">downeytim</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 25-Mar-2010 at 7:11am<br /><br />I have tried for several hours to get the examples in the help file for the AsyncSerialTask to work in a unit test.&nbsp; It does not work.<DIV>&nbsp;</DIV><DIV>Here is my code. It is take directly from the help file with some minor modification for my database objects</DIV><DIV><FONT size=2><FONT face="Arial, Helvetica, sans-serif"><FONT color=#2b91af><FONT color=#2b91af><FONT color=#000000></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT face="Arial, Helvetica, sans-serif"><FONT color=#2b91af><FONT color=#2b91af><FONT color=#000000>CypressEntityManager mgr = CypressEntityManager.DefaultManager;</FONT></FONT></FONT></FONT></FONT></DIV><P><FONT size=2><FONT face="Arial, Helvetica, sans-serif"><FONT color=#2b91af><FONT color=#2b91af><FONT color=#000000>var rootTask = AsyncSerialTask.Create&lt;string&gt;("Task1");</FONT></FONT></FONT></FONT></FONT></P><P><FONT size=2><FONT face="Arial, Helvetica, sans-serif"><FONT color=#2b91af><FONT color=#2b91af><FONT color=#000000>rootTask<BR>.AddAsyncQuery((code) =&gt; mgr.Suffixes.Where(s =&gt; s.Code == code))<BR>.AddAsyncQuery( (args) =&gt; args.Result.First())<BR>.Execute("Jr", asyncSerCompletedHandler); <BR>}<BR></P><DIV></DIV><DIV>Here is the first error I get.</DIV><DIV>Error&nbsp;203&nbsp;The type arguments for method 'IdeaBlade.EntityModel.AsyncSerialTaskExtensions.AddAsyncQuery&lt;T0,T1,T2&gt;(IdeaBlade.EntityModel.AsyncSerialTask&lt;T0,T1&gt;, System.Func&lt;T1,IdeaBlade.EntityModel.IEntityQuery&lt;T2&gt;&gt;)' cannot be inferred from the usage. Try specifying the type arguments explicitly.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>The error is in reference to the first AddAsyncQuery line.&nbsp; I have tried many different forms of this code and cannot get it working at all.&nbsp; Unless someone can show me how to do this simple thing I can't see using this as much as I would like to.</DIV><DIV>&nbsp;</DIV><DIV>We need a lot more examples of this type of advanced object in the help or sample applications that use these types of calls in various configurations. </DIV><DIV></FONT></FONT></FONT></FONT></FONT>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 25 Mar 2010 07:11:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1697&amp;PID=6408#6408</guid>
  </item> 
 </channel>
</rss>