<?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 : CoroutinFns.AsOperation ..how to use?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : Community Forum : CoroutinFns.AsOperation ..how to use?</description>
  <pubDate>Fri, 10 Apr 2026 23:54:13 -700</pubDate>
  <lastBuildDate>Mon, 27 Feb 2012 09:08:05 -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=3286</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>CoroutinFns.AsOperation ..how to use? :   Ok, I&amp;#039;m...my HandleError...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12821#12821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 27-Feb-2012 at 9:08am<br /><br />Ok, I'm...my HandleError was returning&nbsp; a IEnumerator&lt;IResult&gt; ...it's ok now thanks!]]>
   </description>
   <pubDate>Mon, 27 Feb 2012 09:08:05 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12821#12821</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : It&amp;#039;s an extension method...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12819#12819</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> 3286<br /><strong>Posted:</strong> 27-Feb-2012 at 8:49am<br /><br /><p>It's an extension method defined in the Cocktail assembly. The method is on the CoroutineFns class.</p><div>&nbsp;</div><div><a href="http://cocktail.ideablade.com/CocktailHelpReference/webframe.html?Cocktail~Cocktail.CoroutineFns~ToSequentialResult.html" target="_blank">http://cocktail.ideablade.com/CocktailHelpReference/webframe.html?Cocktail~Cocktail.CoroutineFns~ToSequentialResult.html</a></div>]]>
   </description>
   <pubDate>Mon, 27 Feb 2012 08:49:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12819#12819</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? :   Hello mgood,everything is...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12817#12817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 26-Feb-2012 at 11:39pm<br /><br />Hello mgood,<div>everything is ok but I don't have the <font color="#ff0000">ToSequentialResult(); </font><font color="#000000">method...where is it defined in the Cocktails.Util assembly?<br>Thanks again</font></div>]]>
   </description>
   <pubDate>Sun, 26 Feb 2012 23:39:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12817#12817</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : I think in my tries of today I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12802#12802</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 24-Feb-2012 at 11:53am<br /><br />I think in my tries of today I was doing <br><br><span style="color: blue;"> return</span> op.AsOperationResult&lt;IEnumerable&lt;userMessage&gt;&gt;();<br><br>Thanks mgood!<br>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 11:53:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12802#12802</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? :   I actually recommend you leave...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12801#12801</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> 3286<br /><strong>Posted:</strong> 24-Feb-2012 at 11:43am<br /><br />I actually recommend you leave the onSuccess/onFail callbacks and make them optional. In some cases you might find&nbsp;it useful to use the callbacks instead of the returned OperationResult. So, with that said, your method would look like this:<div>&nbsp;</div><div><p style="margin: 0px;"><span style="color: blue;">public</span> OperationResult&lt;IEnumerable&lt;userMessage&gt;&gt; LoadUserMessages(<span>DateTime</span> data, <span style="color: blue;">int</span> ancheMessaggiVisti, </p><div><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Action</span>&lt;<span>IEnumerable&lt;userMessage&gt;</span>&gt; onSuccess = null, <span>Action</span>&lt;<span>Exception</span>&gt; onFail = null)</div><p style="margin: 0px;">    {</p><p style="margin: 0px;">       <span style="color: blue;">&nbsp;&nbsp;&nbsp;&nbsp; var</span> query = Manager.IF_SP_USER_MESSAGES_SELECTQuery(&lt;parameter&gt;);</p><p style="margin: 0px;"> </p><p style="margin: 0px;">       &nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> op = query.ExecuteAsync();</p><p style="margin: 0px;"> </p><p style="margin: 0px;">       <span style="color: blue;">&nbsp;&nbsp;&nbsp;&nbsp; return</span> op.OnComplete(onSuccess, onFail).AsOperationResult&lt;userMessage&gt;();</p><p style="margin: 0px;">    }</p><div>&nbsp;</div><div>Both, OnComplete and AsOperationResult&lt;T&gt;() will do the cast for you.</div></div>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 11:43:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12801#12801</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : This would be really great!  ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12799#12799</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 24-Feb-2012 at 11:14am<br /><br />This would be really great!]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 11:14:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12799#12799</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : I can&amp;#039;t remember how it works...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12796#12796</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> 3286<br /><strong>Posted:</strong> 24-Feb-2012 at 10:48am<br /><br />I can't remember how it works with Stored Procedures, so Marcel will have to chime in, but when you use the OperationResult you won't have to use onSuccess/onFail as all that functionality is provided by the OperationResult class.]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 10:48:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12796#12796</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : Hello,if I do so in the applicationrepository...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12795#12795</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 24-Feb-2012 at 10:42am<br /><br />Hello,<div>if I do so in the applicationrepository (casting .OperationResult()) can I convert to OperationResult&lt;IEnumerable&lt;T&gt;&gt;() in the viewmodel ? is necessary to pass OnSuccess and onFail in the repository?</div><div><br></div>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 10:42:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12795#12795</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : Can you not do:public OperationResult...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12790#12790</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> 3286<br /><strong>Posted:</strong> 24-Feb-2012 at 9:12am<br /><br />Can you not do:<br><br><p style="margin: 0px;"><span style="color: blue;">public</span> OperationResult LoadUserMessages(<span style="color: rgb43, 145, 175;">DateTime</span> data, <span style="color: blue;">int</span> ancheMessaggiVisti, <span style="color: rgb43, 145, 175;">Action</span>&lt;<span style="color: rgb43, 145, 175;">IEnumerable</span>&gt; onSuccess, <span style="color: rgb43, 145, 175;">Action</span>&lt;<span style="color: rgb43, 145, 175;">Exception</span>&gt; onFail)</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> query = Manager.IF_SP_USER_MESSAGES_SELECTQuery(&lt;parameter&gt;);</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> op = query.ExecuteAsync();</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> op.OnComplete(onSuccess, onFail).AsOperationResult();</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;</p><br>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 09:12:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12790#12790</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? :   Excuse me ... since I retrieve...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12789#12789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 24-Feb-2012 at 6:41am<br /><br />Excuse me ... since I retrieve data from stored procedure how should I implement the methods?<div>&nbsp;</div><div>Mines are in the form</div><div>&nbsp;</div><div><div style=": white; color: black; font-family: C&#111;nsolas; font-size: 10pt;"><p style="margin: 0px;"><span style="color: blue;">public</span> <span style="color: rgb43, 145, 175;">INotifyCompleted</span> LoadUserMessages(<span style="color: rgb43, 145, 175;">DateTime</span> data, <span style="color: blue;">int</span> ancheMessaggiVisti, <span style="color: rgb43, 145, 175;">Action</span>&lt;<span style="color: rgb43, 145, 175;">IEnumerable</span>&gt; onSuccess, <span style="color: rgb43, 145, 175;">Action</span>&lt;<span style="color: rgb43, 145, 175;">Exception</span>&gt; onFail)</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> query = Manager.IF_SP_USER_MESSAGES_SELECTQuery(&lt;parameter&gt;);</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">var</span> op = query.ExecuteAsync();</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <span style="color: blue;">return</span> op.OnComplete(onSuccess, onFail);</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; }</p><p style="margin: 0px;">&nbsp;</p><div>but this won't work as OperationResult, neither OperationResult&lt;IEnumerable&lt;userMessage&gt;&gt;();</div><div>&nbsp;</div><div>Thanks</div></div><!--EndFragment--></div>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 06:41:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12789#12789</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? :   Sorry, minor change. I see...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12762#12762</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> 3286<br /><strong>Posted:</strong> 23-Feb-2012 at 10:27am<br /><br />Sorry, minor change. I see your HandleError return IEnumberable&lt;IResult&gt;.<div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public IEnumerable&lt;IResult&gt; LoadData()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsBusy = true;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CanPrintExport = false;<br>&nbsp;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OperationResult&lt;IEnumerable&lt;ElencoCollateralsResult&gt;&gt; operation;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yield return (operation = repository.myMethod(Date)).ContinueOnError();<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (operation.CompletedSuccessfully)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataItems = new BindableCollection&lt;myObject&gt;(operation.Result);<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (operation.HasError)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yield return errorHandler.HandleError(operation.Error)<font color="#ff0000">.ToSequentialResult();<br></font>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsBusy = false;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CanPrintExport = DataItems != null &amp;&amp; DataItems.Count() &gt; 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</div>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 10:27:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12762#12762</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? :   You can also write this a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12761#12761</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> 3286<br /><strong>Posted:</strong> 23-Feb-2012 at 10:22am<br /><br />You can also write this a little cleaner with Cocktail v0.3.1 (available for download now) if you move the AsOperationResult call into myMethod and have myMethod return OperationResult&lt;IEnumerable&lt;ElencoCollateralsResult&gt;&gt;.<div>&nbsp;</div><div><pre style=": white; color: black; font-family: C&#111;nsolas;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public IEnumerable&lt;IResult&gt; LoadData()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsBusy = true;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CanPrintExport = false;<br>&nbsp;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OperationResult&lt;IEnumerable&lt;ElencoCollateralsResult&gt;&gt; operation;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yield return (operation = repository.myMethod(Date)).ContinueOnError();<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (operation.CompletedSuccessfully)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataItems = new BindableCollection&lt;myObject&gt;(operation.Result);<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (operation.HasError)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yield return errorHandler.HandleError(operation.Error);<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IsBusy = false;<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CanPrintExport = DataItems != null &amp;&amp; DataItems.Count() &gt; 0;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br></pre></div>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 10:22:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12761#12761</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : OperationResult implements INotifyCompleted...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12756#12756</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> 3286<br /><strong>Posted:</strong> 23-Feb-2012 at 9:06am<br /><br />OperationResult implements INotifyCompleted and IResult so you can return it as either.&nbsp;]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 09:06:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12756#12756</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? :   Leaving the return type unchanged?...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12755#12755</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 23-Feb-2012 at 9:05am<br /><br />Leaving the return type unchanged?]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 09:05:38 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12755#12755</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : You can change that to: yield...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12753#12753</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> 3286<br /><strong>Posted:</strong> 23-Feb-2012 at 8:57am<br /><br />You can change that to:<br><br>&nbsp; <span style="color: blue;">yield</span> <span style="color: blue;">return</span>&nbsp;<span style="color: #2b91af;"></span><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; repository.myMethod(Date, results =&gt;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; DataItems = <span style="color: blue;">new</span> <span style="color: #2b91af;">BindableCollection</span>&lt;myObject&gt;(results.Cast&lt;<span style="color: #2b91af;">ElencoCollateralsResult</span>&gt;());</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; },</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; e =&gt;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Caliburn.Micro.<span style="color: #2b91af;">Coroutine</span>.BeginExecute(errorHandler.HandleError(e), <span style="color: blue;">null</span>, <span style="color: blue;">null</span>);</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; }).AsOperationResult();</p><br>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 08:57:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12753#12753</guid>
  </item> 
  <item>
   <title>CoroutinFns.AsOperation ..how to use? : Hello,I&amp;#039;m migrating to Cocktail......</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12747#12747</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 3286<br /><strong>Posted:</strong> 23-Feb-2012 at 2:04am<br /><br />Hello,<br>I'm migrating to Cocktail... I got a problem with the AsOperationResult ..<br><br>&nbsp;&nbsp;&nbsp;&nbsp;<div style="font-family: C&#111;nsolas; font-size: 10pt; color: black; : white;"><p style="margin: 0px;"><span style="color: blue;">public</span> <span style="color: #2b91af;">IEnumerable</span>&lt;<span style="color: #2b91af;">IResult</span>&gt; LoadData()</p><p style="margin: 0px;">&nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; IsBusy = <span style="color: blue;">true</span>;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; CanPrintExport = <span style="color: blue;">false</span>;</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: #2b91af;">CoroutineFns</span>.AsOperationResult(</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <span style="color: blue;">yield</span> <span style="color: blue;">return</span> <span style="color: #2b91af;">CoroutineFns</span>.AsOperationResult(() =&gt;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; repository.myMethod(Date, results =&gt;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; DataItems = <span style="color: blue;">new</span> <span style="color: #2b91af;">BindableCollection</span>&lt;myObject&gt;(results.Cast&lt;<span style="color: #2b91af;">ElencoCollateralsResult</span>&gt;());</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; },</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; e =&gt;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; {</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Caliburn.Micro.<span style="color: #2b91af;">Coroutine</span>.BeginExecute(errorHandler.HandleError(e), <span style="color: blue;">null</span>, <span style="color: blue;">null</span>);</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; }));</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; IsBusy = <span style="color: blue;">false</span>;</p><p style="margin: 0px;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; CanPrintExport = DataItems != <span style="color: blue;">null</span> &amp;&amp; DataItems.Count() &gt; 0;</p><p style="margin: 0px;">&nbsp;</p><p style="margin: 0px;">&nbsp;&nbsp; }</p></div><br>I got the error<br><br>Error&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp; Cannot convert lambda expression to type 'IdeaBlade.EntityModel.INotifyCompleted' because it is not a delegate type&nbsp;&nbsp; <br><br>How can I fix it?<br><br>Thanks<br><br><br>&nbsp;<br><br><br>]]>
   </description>
   <pubDate>Thu, 23 Feb 2012 02:04:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3286&amp;PID=12747#12747</guid>
  </item> 
 </channel>
</rss>