<?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 : Get to imported objects inside server-side methods</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Get to imported objects inside server-side methods</description>
  <pubDate>Mon, 13 Apr 2026 03:49:08 -700</pubDate>
  <lastBuildDate>Fri, 08 Jun 2012 12:52:56 -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=3478</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>Get to imported objects inside server-side methods :   Yes, sure it&amp;#039;s not in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3478&amp;PID=13809#13809</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3478<br /><strong>Posted:</strong> 08-Jun-2012 at 12:52pm<br /><br />Yes, sure it's not in Static. Actually, it's not in&nbsp;<em> IdeaBlade.Core.Composition.CompositionHost </em>either.<div>&nbsp;</div><div>I got it from my own Bootstrapper class..</div>]]>
   </description>
   <pubDate>Fri, 08 Jun 2012 12:52:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3478&amp;PID=13809#13809</guid>
  </item> 
  <item>
   <title>Get to imported objects inside server-side methods :   Hi katit,In this case you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3478&amp;PID=13808#13808</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3478<br /><strong>Posted:</strong> 08-Jun-2012 at 12:40pm<br /><br />Hi katit,<div></div><div>In this case you might want to try access it within the method itself:</div><div>&nbsp;</div><div><em>&nbsp; &#091;AllowRpc&#093;</em></div><div><em>&nbsp;&nbsp;public static void PushToDevices(IPrincipal principal, EntityManager entityManager, params object&#091;&#093; args) {</em></div><div><em>&nbsp;&nbsp;&nbsp;&nbsp;var pushNotificator = IdeaBlade.Core.Composition.CompositionHost.Instance.GetExportedInstance&lt;IPushNotificator&gt;(false);</em></div><div><em>&nbsp; }</em></div><div>&nbsp;</div><div>The cause of the issue might be that because ServerMethods is never instantiated, there isn't an instance of it to be referenced by the static method.<div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div></div>]]>
   </description>
   <pubDate>Fri, 08 Jun 2012 12:40:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3478&amp;PID=13808#13808</guid>
  </item> 
  <item>
   <title>Get to imported objects inside server-side methods :   I&amp;#039;m trying to implement...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3478&amp;PID=13735#13735</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3478<br /><strong>Posted:</strong> 04-Jun-2012 at 8:15pm<br /><br />I'm trying to implement some server-side methods but not sure how to get to MEF Composition container<div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>public class ServerMethods<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;Import&#093;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public IPushNotificator PushNotificator { get; set; }</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#091;AllowRpc&#093;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public static void PushToDevices(IPrincipal principal, EntityManager entityManager, params object&#091;&#093; args) <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }</div><div></pre></td></tr></table></div><div>&nbsp;</div><div>I need to access my PushNotificator from PushToDevices methods. Server-side method is static and I don't get PushNotificator. How do I access this object in my scenario?</div>]]>
   </description>
   <pubDate>Mon, 04 Jun 2012 20:15:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3478&amp;PID=13735#13735</guid>
  </item> 
 </channel>
</rss>