<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>MEF Discussions Rss Feed</title><link>http://www.codeplex.com/MEF/Thread/List.aspx</link><description>MEF Discussions Rss Description</description><item><title>New Post: Any MEF books coming?</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75498</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hey Glenn,&lt;/p&gt;
&lt;p&gt;A number of potential topics come to mind for me:&lt;/p&gt;
&lt;p&gt;1) A discussion of how to build a fully composable application - one with a public,&amp;nbsp;extensible object model (ala&amp;nbsp;Excel or VS)&amp;nbsp;that is independent of and&amp;nbsp;has an extensible user interface (WPF is fine for concrete examples - how to make menus, ribbons, dialogs, etc. runtime composable).&lt;/p&gt;
&lt;p&gt;2) A discussion of containment &amp;amp; hierarchy - how to create systems where a given part may&amp;nbsp;need to be&amp;nbsp;non-shared from the point of view of the entire system, but shared from the point of view of its &amp;quot;contained&amp;quot; parts. Think of Excel as a model -&amp;nbsp;a workbook can have many sheets that are created or destroyed based on user requests. These worksheets are non-shared from the&amp;nbsp;workbook point of view, but their contained objects (cells, ranges, etc.) see the sheet as a shared object.&lt;/p&gt;
&lt;p&gt;3) A discussion of part lifetime. How do&amp;nbsp;you build a system with a dynamic set of parts (think Excel again)&amp;nbsp;that&amp;nbsp;properly cleans&amp;nbsp;up after itself when a part&amp;nbsp;is no longer needed? Probably such a discussion ties in tightly with #2.&lt;/p&gt;
&lt;p&gt;4) A discussion of performance. What are the bottlenecks in MEF (i.e. discovery, composition, etc.)?&lt;/p&gt;
&lt;p&gt;5) A discussion of how MEF relates to threads and AppDomains. In particular, how do I build an MEF-based system that allows me to isolate a subset of its parts in a separate AppDomain so I can unload it when I'm done using those parts? What are the implications of creating parts on a different thread, or using a part on a thread other than the one on which it was created?&lt;/p&gt;
&lt;p&gt;I too would love to be on the reviewer list for this book...&lt;/p&gt;
&lt;p&gt;Ron&lt;/p&gt;&lt;/div&gt;</description><author>vandermeulen</author><pubDate>Fri, 20 Nov 2009 17:07:14 GMT</pubDate><guid isPermaLink="false">New Post: Any MEF books coming? 20091120050714P</guid></item><item><title>New Post: Same Type Exports for Exports</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75605</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;After starting a new project to simplify things again I discovered that it was working.&amp;nbsp; Looking deeper at the project that I was using when I posted this question, I see that I had an old copy of a DLL in my DirectoryCatalog's path.&amp;nbsp; This old DLL is what was causing my ReflectionTypeLoadException.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;/div&gt;</description><author>JamesEggers</author><pubDate>Fri, 20 Nov 2009 14:32:09 GMT</pubDate><guid isPermaLink="false">New Post: Same Type Exports for Exports 20091120023209P</guid></item><item><title>New Post: Any MEF books coming?</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75498</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;I'd like to see the design &amp;amp; architechture of MEF.&lt;/p&gt;
&lt;p&gt;Maybe start with something like &amp;quot;implement a MEF yourself step by step&amp;quot;, and then introduce how to use MEF and how to extend it.&lt;/p&gt;&lt;/div&gt;</description><author>Ray1984</author><pubDate>Fri, 20 Nov 2009 14:11:05 GMT</pubDate><guid isPermaLink="false">New Post: Any MEF books coming? 20091120021105P</guid></item><item><title>New Post: Any MEF books coming?</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75498</link><description>&lt;div style="line-height: normal;"&gt;&lt;blockquote style="border:solid .1em #ccc;font-style:italic;margin:.25em 1em 0 1em;padding:0 .25em 0 .25em"&gt;&lt;strong&gt;gblock wrote:&lt;/strong&gt;&lt;br&gt;
&lt;p&gt;Hi polyGhost&lt;/p&gt;
&lt;p&gt;Kathleen Dollard, myself and Daniel Plaisted are in the early stages of authoring a MEF book. We're hoping ot have it out some time next year.&lt;/p&gt;
&lt;p&gt;What would you want to see in such a book?&lt;/p&gt;
&lt;p&gt;Glenn&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;While I appreciate that MEF has been designed to be lightweight enough (in terms of dependencies) to be domain agnostic, I would love to see a use case in the book that specifically mashed up MEF to enable 3rd party customisation (composition) within a existing UI.&lt;/p&gt;
&lt;p&gt;Assuming it's even possible, how would one go about getting on the reviewers list for such a book.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Tom Kirby-Green&lt;/p&gt;
&lt;p&gt;Technical Architect,&lt;/p&gt;
&lt;p&gt;SunGard Adaptiv.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>polyGhost</author><pubDate>Fri, 20 Nov 2009 11:25:49 GMT</pubDate><guid isPermaLink="false">New Post: Any MEF books coming? 20091120112549A</guid></item><item><title>New Post: Any MEF books coming?</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75498</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi polyGhost&lt;/p&gt;
&lt;p&gt;Kathleen Dollard, myself and Daniel Plaisted are in the early stages of authoring a MEF book. We're hoping ot have it out some time next year.&lt;/p&gt;
&lt;p&gt;What would you want to see in such a book?&lt;/p&gt;
&lt;p&gt;Glenn&lt;/p&gt;&lt;/div&gt;</description><author>gblock</author><pubDate>Fri, 20 Nov 2009 06:17:37 GMT</pubDate><guid isPermaLink="false">New Post: Any MEF books coming? 20091120061737A</guid></item><item><title>New Post: Referencing Errors.</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75663</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Ok, probably a nub question but for whatever reason after downloading the MEF preview 6 and the 8, I can not reference the &amp;quot;System.ComponentModel.Composition&amp;quot; from a silverlight 3 project.&amp;nbsp; I then recompiled all source and still same error:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now this only happens when I try to reference the assembly in a silverlight project, not a console app for ex.&lt;/p&gt;
&lt;p&gt;Any thoughts?&amp;nbsp; I Personally haven't seen this error before.&lt;/p&gt;
&lt;p&gt;Thanx for your help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>slacquer</author><pubDate>Fri, 20 Nov 2009 00:17:03 GMT</pubDate><guid isPermaLink="false">New Post: Referencing Errors. 20091120121703A</guid></item><item><title>New Post: Same Type Exports for Exports</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75605</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Actually, that was an issue with the code paste.&amp;nbsp; I did have IEnumerable&amp;lt;IFoo&amp;gt; but it looks like the text area didn't encoded it.&amp;nbsp; I'll update such.&lt;/p&gt;&lt;/div&gt;</description><author>JamesEggers</author><pubDate>Thu, 19 Nov 2009 18:14:26 GMT</pubDate><guid isPermaLink="false">New Post: Same Type Exports for Exports 20091119061426P</guid></item><item><title>New Post: Same Type Exports for Exports</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75605</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;What you are doing should work I think the error you are suing is with your ImportMany property type. Try changing it to IEnumerable&amp;lt;IFoo&amp;gt;.&lt;/p&gt;&lt;/div&gt;</description><author>weshaggard</author><pubDate>Thu, 19 Nov 2009 18:08:03 GMT</pubDate><guid isPermaLink="false">New Post: Same Type Exports for Exports 20091119060803P</guid></item><item><title>New Post: Silverlight 4 beta and MEF</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75623</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;You could use either, they should basically be the same. The biggest difference is the one in SL4 SDK is signed. It would be nice if you use the one from SL4 SDK to help find any issues with it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>weshaggard</author><pubDate>Thu, 19 Nov 2009 18:04:53 GMT</pubDate><guid isPermaLink="false">New Post: Silverlight 4 beta and MEF 20091119060453P</guid></item><item><title>New Post: Silverlight 4 beta and MEF</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75623</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I've been using MEF quite a while now with prototype stuff I'm working on.&lt;/p&gt;
&lt;p&gt;I just finished installing the Silverlight 4 beta bits to my machine.&lt;/p&gt;
&lt;p&gt;Which version of MEF should I be using with silverlight 4? The version that came with it or the preview 8?&lt;/p&gt;&lt;/div&gt;</description><author>pekkah</author><pubDate>Thu, 19 Nov 2009 16:59:16 GMT</pubDate><guid isPermaLink="false">New Post: Silverlight 4 beta and MEF 20091119045916P</guid></item><item><title>New Post: Same Type Exports for Exports</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75605</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I'm looking into a situation where I'd like to provide a recursive model for some Exports on a project.&amp;nbsp; I know that I can create Exports that are also composed of various parts themselves; however, can those &amp;quot;subparts&amp;quot; be of the same type?&amp;nbsp; I tried a quick concept before work this morning and got a Reflection-based error (forgot to note which one).&lt;/p&gt;
&lt;p&gt;Ultimately, what I wrote was the below using .net 3.5 and MEF beta 2.&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;[Export(&lt;span style="color:#A31515"&gt;&amp;quot;initialPart&amp;quot;&lt;/span&gt;, &lt;span style="color:Blue"&gt;typeof&lt;/span&gt;(IFoo))]
&lt;span style="color:Blue"&gt;public&lt;/span&gt; &lt;span style="color:Blue"&gt;class&lt;/span&gt; MyInitialPart : IFoo
{
    &lt;span style="color:Green"&gt;// ... IFoo Implementation Code&lt;/span&gt;

    [ImportMany(&lt;span style="color:#A31515"&gt;&amp;quot;subPart&amp;quot;&lt;/span&gt;, &lt;span style="color:Blue"&gt;typeof&lt;/span&gt;(IFoo))]
    &lt;span style="color:Blue"&gt;public&lt;/span&gt; IEnumerable SubParts { &lt;span style="color:Blue"&gt;get&lt;/span&gt;; &lt;span style="color:Blue"&gt;set&lt;/span&gt;; }
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Is it possible to have an Export that also attempts to have Imports of the same type but different contract description/label?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>JamesEggers</author><pubDate>Thu, 19 Nov 2009 15:14:01 GMT</pubDate><guid isPermaLink="false">New Post: Same Type Exports for Exports 20091119031401P</guid></item><item><title>New Post: Make Imports available</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75348</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;ComposablePartCatalog.GetExports is a simply shortcut method to get all the Exports. You can simply traverse ComposablePartCatalog.Parts to get the full list of Exports and Imports.&lt;/p&gt;&lt;/div&gt;</description><author>weshaggard</author><pubDate>Wed, 18 Nov 2009 20:58:50 GMT</pubDate><guid isPermaLink="false">New Post: Make Imports available 20091118085850P</guid></item><item><title>New Post: Any MEF books coming?</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75498</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Sorry I'm not aware of any books in the works (of course that doesn't mean there aren't any).&lt;/p&gt;&lt;/div&gt;</description><author>weshaggard</author><pubDate>Wed, 18 Nov 2009 20:56:52 GMT</pubDate><guid isPermaLink="false">New Post: Any MEF books coming? 20091118085652P</guid></item><item><title>New Post: Loading plugins from UI.</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75356</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Unfortunately there isn't any built in way to do this but it is certainly possible to build it on top of MEF. I'm not aware of any examples of this yet. It would make for a good sample though if you want to try and tackle it.&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>weshaggard</author><pubDate>Wed, 18 Nov 2009 20:54:58 GMT</pubDate><guid isPermaLink="false">New Post: Loading plugins from UI. 20091118085458P</guid></item><item><title>New Post: Any MEF books coming?</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75498</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Just dipping my toes in MEF waters for the first time, and while the blog sphere is providing a lot of useful examples I'm really looking for something far more structured that goes way beyond the MEF whitepaper etc. Does anyone know if any MEF books are coming?&lt;/p&gt;&lt;/div&gt;</description><author>polyGhost</author><pubDate>Wed, 18 Nov 2009 16:48:06 GMT</pubDate><guid isPermaLink="false">New Post: Any MEF books coming? 20091118044806P</guid></item><item><title>New Post: ModuleName.UserUIExtensions</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75430</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;took a look at the ExtensibleGrid.Extensions sample&lt;/p&gt;
&lt;p&gt;I have one question around that issue of extentions with UI.&lt;br&gt;the current implementation:&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;
        &lt;span style="color:Blue"&gt;void&lt;/span&gt; OKButton_Click(&lt;span style="color:Blue"&gt;object&lt;/span&gt; sender, RoutedEventArgs e)
        {
            &lt;span style="color:Blue"&gt;foreach&lt;/span&gt; (&lt;span style="color:Blue"&gt;var&lt;/span&gt; extensionItem &lt;span style="color:Blue"&gt;in&lt;/span&gt; extensionItems)
            {
                &lt;span style="color:Blue"&gt;if&lt;/span&gt; (extensionItem.Enabled == &lt;span style="color:Blue"&gt;true&lt;/span&gt; &amp;amp;&amp;amp; extensionItem.Activated == &lt;span style="color:Blue"&gt;false&lt;/span&gt;)
                {
                    &lt;span style="color:Blue"&gt;var&lt;/span&gt; extension = extensionItem.GridExtension.Value;
                    extension.Initialize(&lt;span style="color:Blue"&gt;this&lt;/span&gt;);
                    extensionItem.Activated = &lt;span style="color:Blue"&gt;true&lt;/span&gt;;
                }
            }
            
        }
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;shouldn't it be:&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;var&lt;/span&gt; extension = extensionItem.GridExtension.Value;
                &lt;span style="color:Blue"&gt;if&lt;/span&gt; (extensionItem.Enabled)
                {
                    extension.Initialize(&lt;span style="color:Blue"&gt;this&lt;/span&gt;);
                }
                &lt;span style="color:Blue"&gt;else&lt;/span&gt;
                {
                    extension.DeInitialize(&lt;span style="color:Blue"&gt;this&lt;/span&gt;);
                }
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;pre&gt;Internally:&lt;br&gt;Initialize&lt;br&gt;DeInitialize&lt;br&gt;&lt;br&gt;will save this original state before making ui changes&lt;br&gt;and deinitialize will restore initial ui changes. http://www.dofactory.com/patterns/patternmemento.aspx#_self2&lt;br&gt;current form is a little cheesy since it doesn't disable effects. : ]&lt;br&gt;&lt;br&gt;&lt;br&gt;I see this sample as an opportunity to create UserUIExtensions to persist ui positions of windows, loaded modules of a silverlight application... has anyone attempted this?&lt;br&gt;&lt;br&gt;&lt;br&gt;thumbs up for awesome framework you guys are building!&lt;br&gt;lm&lt;/pre&gt;&lt;/div&gt;</description><author>leblanc</author><pubDate>Wed, 18 Nov 2009 07:25:10 GMT</pubDate><guid isPermaLink="false">New Post: ModuleName.UserUIExtensions 20091118072510A</guid></item><item><title>New Post: Loading plugins from UI.</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75356</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I've been looking at the Managed Extensibility Framework for about a week now. It has opened up a lot in my applications extensibility and product life. One thing I'm struggling with is how to create a UI and have the catalog know which addons NOT to load out of a directory.&lt;/p&gt;&lt;/div&gt;</description><author>soldier4faith</author><pubDate>Tue, 17 Nov 2009 14:00:56 GMT</pubDate><guid isPermaLink="false">New Post: Loading plugins from UI. 20091117020056P</guid></item><item><title>New Post: Make Imports available</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=75348</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Guys.&lt;/p&gt;
&lt;p&gt;I wrote a Custom Catalog to make Exports from an IoC Container available in CompositionContainer.&lt;/p&gt;
&lt;p&gt;Now i want to make Imports from IoC Container available in CompositionContainer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Question is: How can i make Imports from a IoC Container available in MEF?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For example i have one xml-File which define one component with one export, and a second&amp;nbsp;xml-File which define one component with one import.&lt;/p&gt;
&lt;p&gt;Now&amp;nbsp;i want that mef makes the connection between these two components with my CustomCatalog.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for response&lt;/p&gt;&lt;/div&gt;</description><author>alonso</author><pubDate>Tue, 17 Nov 2009 13:03:42 GMT</pubDate><guid isPermaLink="false">New Post: Make Imports available 20091117010342P</guid></item><item><title>New Post: GetExportedValues very slow</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=74765</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Cool, glad to help.&lt;/p&gt;&lt;/div&gt;</description><author>gblock</author><pubDate>Fri, 13 Nov 2009 07:00:13 GMT</pubDate><guid isPermaLink="false">New Post: GetExportedValues very slow 20091113070013A</guid></item><item><title>New Post: Mono compatibility</title><link>http://mef.codeplex.com/Thread/View.aspx?ThreadId=74839</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I will be speaking to Miguel de Icaza about this. It should be easy for them to update in their codebase.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Glenn&lt;/p&gt;&lt;/div&gt;</description><author>gblock</author><pubDate>Fri, 13 Nov 2009 06:58:47 GMT</pubDate><guid isPermaLink="false">New Post: Mono compatibility 20091113065847A</guid></item></channel></rss>