<?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 : Coroutine.Cancel() and Custom Operations</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Coroutine.Cancel() and Custom Operations</description>
  <pubDate>Mon, 13 Apr 2026 05:52:02 -700</pubDate>
  <lastBuildDate>Thu, 05 Jul 2012 06:57:24 -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=3514</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>Coroutine.Cancel() and Custom Operations :   Yeah that&amp;#039;s what I wasconcerned...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3514&amp;PID=13951#13951</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 05-Jul-2012 at 6:57am<br /><br />Yeah that's what I was&nbsp;concerned about. We don't inherit from BaseOperation, just INotifyCompleted, so even though we have a Cancel() method and a Cancelled property, they'll never be called.<div>&nbsp;</div>We might be in the same boat with respect to web services, but at the very least I'd like to abort the client, unwire event-handlers&nbsp;and close it down properly.<div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 05 Jul 2012 06:57:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3514&amp;PID=13951#13951</guid>
  </item> 
  <item>
   <title>Coroutine.Cancel() and Custom Operations :   If a Coroutine operationinheritsfrom...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3514&amp;PID=13939#13939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 03-Jul-2012 at 2:01pm<br /><br />If a Coroutine operation&nbsp;inherits&nbsp;from BaseOperation the Cancel request will also try to cancel that operation.<div>&nbsp;</div><div>One thing to note though, is that a web service request might not be truly cancellable anyway.&nbsp; This is the case for the&nbsp;async requests to the EntityServer - the underlying service operations cannot be cancelled, but we do stop tracking them when cancel is requested.</div>]]>
   </description>
   <pubDate>Tue, 03 Jul 2012 14:01:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3514&amp;PID=13939#13939</guid>
  </item> 
  <item>
   <title>Coroutine.Cancel() and Custom Operations :     I&amp;#039;m wondering what...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3514&amp;PID=13938#13938</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=452" rel="nofollow">ken.nelson</a><br /><strong>Subject:</strong> 3514<br /><strong>Posted:</strong> 03-Jul-2012 at 1:34pm<br /><br /><font size="2"><font face="Times New Roman"></font></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2"><font face="Verdana, Arial, Helvetica, sans-serif">I'm wondering what theCoroutine.Cancel method is doing under the hood. The Remarks section statesthat all operations which haven't yet completed will be cancelled. The reasonI'm asking is because we've written our own Operations that implement the INotifyCompletedinterface. These operations allow us to call our custom web-service methodsinside a Coroutine, but since INotifyCompleted doesn't define Cancel(), I'mwondering how Coroutine.Cancel() would know how to cancel it.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></font></font></span></p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><o:p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">&nbsp;</font></o:p></span></p><font size="2" face="Verdana, Arial, Helvetica, sans-serif"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2"><font face="Verdana, Arial, Helvetica, sans-serif">Really I guess thebottom-line question is: What do we have to do to make sure our customOperations are properly cancelled when used inside a Coroutine and Coroutine.Cancel is called?</font></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><o:p><font size="2">&nbsp;</font></o:p></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><o:p><font size="2">&nbsp;</font></o:p></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">// Summary:<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">//&nbsp;&nbsp;&nbsp;&nbsp;Cancel a currently running coroutine.<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">//<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">// Parameters:<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">//&nbsp;&nbsp;coroutineOperation:<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">//<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">// Remarks:<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">//&nbsp;&nbsp;&nbsp;&nbsp;If the iterator is still running, cancels all operations which haven't yet<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">//&nbsp;&nbsp;&nbsp;&nbsp;completed.<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font><p style="margin: 0in 0in 0pt;" ="Ms&#111;normal"><span style="font-family: C&#111;nsolas;"><font size="2">public static voidCancel(CoroutineOperation coroutineOperation);<o:p></o:p></font></span></p><font size="2" face="Times New Roman"></font>]]>
   </description>
   <pubDate>Tue, 03 Jul 2012 13:34:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3514&amp;PID=13938#13938</guid>
  </item> 
 </channel>
</rss>