<?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 : EntityServiceApplication &amp; OnServiceStartup</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : EntityServiceApplication &amp; OnServiceStartup</description>
  <pubDate>Sun, 12 Apr 2026 01:35:34 -700</pubDate>
  <lastBuildDate>Wed, 30 Sep 2009 09:36: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=1500</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>EntityServiceApplication &amp; OnServiceStartup : DevForce uses somewhat different...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1500&amp;PID=5540#5540</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> 1500<br /><strong>Posted:</strong> 30-Sep-2009 at 9:36am<br /><br /><P>DevForce uses somewhat different means of looking for the methods marked with the AllowRpcAttribute vs. an implementation of a custom EntityServiceApplication.</P><DIV>Methods marked with AllowRpc aren't actually probed - the type and method information provided in the InvokeServerMethod call is used to search for the method.&nbsp; The assembly is loaded if necessary, but it's assumed to already be in the bin folder.&nbsp; If you add the assembly name to the &lt;probeAssemblyNames&gt; somewhere in the config this will usually just mean that the assembly has already been loaded (usually when probing for other reasons) before the type and method are reflected.</DIV><DIV>&nbsp;</DIV><DIV>Probing is used when looking for a custom EntityServiceApplication.&nbsp; Here only the top-level (as opposed to EdmKey-level) &lt;probeAssemblyNames&gt; are searched.&nbsp; So your implementation should be found if you add (or move) that &lt;probeAssemblyName&gt; element to the top-level.&nbsp; (You can use the Configuration Editor if you need help with the elements/attributes defined in the ideablade.configuration section.)</DIV>]]>
   </description>
   <pubDate>Wed, 30 Sep 2009 09:36:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1500&amp;PID=5540#5540</guid>
  </item> 
  <item>
   <title>EntityServiceApplication &amp; OnServiceStartup : Hello,  I create a silverlight...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1500&amp;PID=5534#5534</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=56" rel="nofollow">antalakas</a><br /><strong>Subject:</strong> 1500<br /><strong>Posted:</strong> 30-Sep-2009 at 2:14am<br /><br />Hello,<br /><br />I create a silverlight application using the devfore template. Nothing unusual.<br /><br />Then i create a new assembly, namely Server.dll and add a reference to it in the web project. An entry in web.config &lt;probeAssemblyName name="Server" /&gt; is also added.<br /><br />I add a method in Server.dll tagged with the &#091;IdeaBlade.EntityModel.AllowRpcAttribute&#093;.<br /><br />Then, from the client i use InvokeServerMethodAsync to access this method and everything works great.<br /><br />At last, i create a new class, MyServiceApplication :<br /><br /><br />using System;<br />using System.Linq;<br /><br />using IdeaBlade.EntityModel;<br />using IdeaBlade.Core;<br /><br />namespace Server<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;public class MyServiceApplication : IdeaBlade.EntityModel.EntityServiceApplication<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public override void OnServiceStartup(object sender, ServiceStartupEventArgs e)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TraceFns.WriteLine("MyServiceApplication - OnServiceStartup");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;base.OnServiceStartup(sender, e);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public override void OnServiceShutdown(object sender, EventArgs e)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TraceFns.WriteLine("MyServiceApplication - OnServiceShutdown");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;base.OnServiceShutdown(sender, e);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /><br />I expect, when the Entity Service is created, to call OnServiceStartup and write an entry in DebugLog.xml. In DebugLog.xml i receive:<br /><br />IdeaBlade.EntityModel EntityServiceApplication::OnServiceStartup EntityService created ,<br /><br />which means that no override took place.<br /><br />Do i miss something?<br /><br />Thank you<br /><br />Andreas]]>
   </description>
   <pubDate>Wed, 30 Sep 2009 02:14:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1500&amp;PID=5534#5534</guid>
  </item> 
 </channel>
</rss>