<?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 : InvokeServerMethodAsync</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : InvokeServerMethodAsync</description>
  <pubDate>Tue, 12 May 2026 23:59:52 -700</pubDate>
  <lastBuildDate>Mon, 08 Apr 2013 04:48:29 -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=4099</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>InvokeServerMethodAsync : Thx i got it working now! </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16196#16196</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=881" rel="nofollow">jkattestaart</a><br /><strong>Subject:</strong> 4099<br /><strong>Posted:</strong> 08-Apr-2013 at 4:48am<br /><br />Thx i got it working now!]]>
   </description>
   <pubDate>Mon, 08 Apr 2013 04:48:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16196#16196</guid>
  </item> 
  <item>
   <title>InvokeServerMethodAsync : DevForce requires that RPC methods...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16192#16192</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> 4099<br /><strong>Posted:</strong> 07-Apr-2013 at 3:13pm<br /><br />DevForce requires that RPC methods have a specific signature, so your SendMail method would need to look like this:<br /><br />&#091;AllowRpc&#093;<br />public static bool SendMail(IPrincipal principal, EntityManager em, params object&#091;&#093; args) <br /><br />You can then get the EmailMessage from the args:<br />var emailMessage = args&#091;0&#093; as EmailMessage;<br /><br />One other thing to watch out for:  the EmailMessage must be a "known" type.  <br /><br />You can find more information here - http://drc.ideablade.com/xwiki/bin/view/Documentation/rsmc-query.<br />]]>
   </description>
   <pubDate>Sun, 07 Apr 2013 15:13:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16192#16192</guid>
  </item> 
  <item>
   <title>InvokeServerMethodAsync : There is no Cocktail wrapper for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16188#16188</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> 4099<br /><strong>Posted:</strong> 06-Apr-2013 at 6:15am<br /><br />There is no Cocktail wrapper for calling a server method beyond an overload of AsOperationResult to turn the result value of InvokeServerMethodAsync into an OperationResult. I've moved your post to the DevForce forum for help on the mechanics of calling a server method.]]>
   </description>
   <pubDate>Sat, 06 Apr 2013 06:15:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16188#16188</guid>
  </item> 
  <item>
   <title>InvokeServerMethodAsync : Hello,  I am using cocktail 1...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16187#16187</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=881" rel="nofollow">jkattestaart</a><br /><strong>Subject:</strong> 4099<br /><strong>Posted:</strong> 06-Apr-2013 at 2:18am<br /><br />Hello,<br /><br />I am using cocktail 1 with Silverlight and i want to send an email from the application. I found the InvokeServerMethodAsync but i'm not sure how to use this. The examples are not clear for me. I want to do something like:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EntityManager mgr = new AccoBookingEntities();<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Make async call<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mgr.InvokeServerMethodAsync(new ServerMethodDelegate(EmailMessage.SendMail), InvokeServerMethodAsyncCompleted,_emailMessage);<br /><br />the server call is:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&#091;AllowRpc&#093;<br />&nbsp;&nbsp;&nbsp;&nbsp;public static bool SendMail(EmailMessage emailMessage)<br /><br />Is there a cocktail wrapper for this with something like an operationresult an how to use this....<br /><br />Thx in advance<br />]]>
   </description>
   <pubDate>Sat, 06 Apr 2013 02:18:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4099&amp;PID=16187#16187</guid>
  </item> 
 </channel>
</rss>