<?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 : Controlling MEF Discovery in Desktop application</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Controlling MEF Discovery in Desktop application</description>
  <pubDate>Thu, 14 May 2026 08:19:35 -700</pubDate>
  <lastBuildDate>Mon, 21 Jan 2013 18:56:10 -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=3913</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>Controlling MEF Discovery in Desktop application :   I think the Cocktail recommendation...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3913&amp;PID=15660#15660</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> 3913<br /><strong>Posted:</strong> 21-Jan-2013 at 6:56pm<br /><br />I think the Cocktail recommendation is to put this logic in the static initializer for your AppBootstrapper, but the App constructor should be fine too.&nbsp; You just need to ensure the SearchPatterns or IgnorePatterns are set before any DevForce or Cocktail initialization is done.]]>
   </description>
   <pubDate>Mon, 21 Jan 2013 18:56:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3913&amp;PID=15660#15660</guid>
  </item> 
  <item>
   <title>Controlling MEF Discovery in Desktop application :   Nevermind, found out that...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3913&amp;PID=15657#15657</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=131" rel="nofollow">-ook</a><br /><strong>Subject:</strong> 3913<br /><strong>Posted:</strong> 21-Jan-2013 at 4:33pm<br /><br />Nevermind, found out that adding the SearchPattern to the 'App' constructor solved the issue.<div></div><div></div>&nbsp;]]>
   </description>
   <pubDate>Mon, 21 Jan 2013 16:33:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3913&amp;PID=15657#15657</guid>
  </item> 
  <item>
   <title>Controlling MEF Discovery in Desktop application :   HelloI have an issue where...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3913&amp;PID=15656#15656</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=131" rel="nofollow">-ook</a><br /><strong>Subject:</strong> 3913<br /><strong>Posted:</strong> 21-Jan-2013 at 4:24pm<br /><br />Hello<div>&nbsp;</div><div>I have an issue where a dll is being examined upon startup that I wish to exclude from the discovery process. I have read <a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/discovery" target="_blank">http://drc.ideablade.com/devforce-2012/bin/view/Documentation/discovery</a> and have added:</div><div>&nbsp;</div><blockquote style="margin-right: 0px;" dir="ltr"><div>IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Clear();<br>IdeaBlade.Core.Composition.CompositionHost.SearchPatterns.Add(<span style="color: rgb163, 21, 21;">"MyDomainModel.dll"</span>);</div></blockquote><div>&nbsp;</div><div>To the EntityServer in the global.asax file. This works for the server side. For the desktop client (a WPF application) I am at a loss as to where to put the above code. </div><div>&nbsp;</div><div>The WPF client is using Cocktail 2012, so is the AppBootstrapper (which inherits CocktailMefBootstrapper)&nbsp;the best place to put it? But where? All the documentation states is: "In a desktop application, set the patterns before you begin using an <em>EntityManager</em> or other DevForce components". I have pasted the above two lines all over the client project and it is always ignored.</div><div>&nbsp;</div><div>Regards</div><div>Mark</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 21 Jan 2013 16:24:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3913&amp;PID=15656#15656</guid>
  </item> 
 </channel>
</rss>