<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Simple Introduction to Extensible Applications with the Managed Extensions Framework</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx</link><description>Recently my team has been working on the Managed Extensions Framework (MEF)... I have gotten a chance to explain the concept to folks and I think I have discovered a way to talk about MEF that folks can easily get. So I thought I'd spend a little time</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Simple Introduction to Extensible Applications with the Managed Extensions Framework</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#9150411</link><pubDate>Fri, 28 Nov 2008 11:12:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9150411</guid><dc:creator>Bill Sithiro</dc:creator><description>&lt;p&gt;Good programmers have been implementing similar approaches to this since like... forever! Not that I don't like it, I think it would be great if this becomes mainstream in the .NET world having a common way of implementing plug-in/add-in/extentending architecture. But, I have a question, what if the class with the color text output that came later could apply the same behaviour to the earlier monochrome ones. How hard would that be to implement?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9150411" width="1" height="1"&gt;</description></item><item><title>Managed Extensibility Framework (MEF) Demo</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#9053588</link><pubDate>Sat, 08 Nov 2008 06:10:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9053588</guid><dc:creator>Brad Abrams </dc:creator><description>&lt;p&gt;The Managed Extensibility Framework (MEF) is a new feature of .NET 4 (and will work on 3.5 as well) that&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9053588" width="1" height="1"&gt;</description></item><item><title>Managed Extensibility Framework (MEF) Demo</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#9049007</link><pubDate>Thu, 06 Nov 2008 16:55:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9049007</guid><dc:creator>Brad Abrams </dc:creator><description>&lt;p&gt;The Managed Extensibility Framework (MEF) is a new feature of .NET 4 (and will work on 3.5 as well) that&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9049007" width="1" height="1"&gt;</description></item><item><title>Extensible Applications with MEF</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#8996626</link><pubDate>Sun, 12 Oct 2008 14:41:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8996626</guid><dc:creator>Guy     kolbis</dc:creator><description>&lt;p&gt;MEF stands for &amp;amp;quot; M anaged E xtensions F ramework&amp;amp;quot;. The idea behinds it is to allow reuse and&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8996626" width="1" height="1"&gt;</description></item><item><title>re: Simple Introduction to Extensible Applications with the Managed Extensions Framework</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#8992502</link><pubDate>Thu, 09 Oct 2008 09:37:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8992502</guid><dc:creator>Glenn Block</dc:creator><description>&lt;p&gt;Hi Dave&lt;/p&gt;
&lt;p&gt;Here is a snippet which we've been toying with just to illustrate the thinking&lt;/p&gt;
&lt;p&gt;In your Main method of your program you would do something like:&lt;/p&gt;
&lt;p&gt;static void Main(args[] string) {&lt;/p&gt;
&lt;p&gt; &amp;nbsp;var CompositionHost = new CompositionHost(&amp;quot;.\&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp;CompositionHost.Run(args)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;this would then import an IApplicationStart that has a Start method and would kick off composition.&lt;/p&gt;
&lt;p&gt;[Export(typeof(IApplicationStart))&lt;/p&gt;
&lt;p&gt;public class ApplicationStart : IApplicationStart&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;void Run(string[] args){}&lt;/p&gt;
&lt;p&gt; &amp;nbsp;[Import]&lt;/p&gt;
&lt;p&gt; &amp;nbsp;ISomeService Service{get;set;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;The host class would manage the container behind the scenes, automatically import the App Start and execute it. Having the App Start part imported would being the composition satisfying any it's imports, it's imports imports, and so on.&lt;/p&gt;
&lt;p&gt;Because App Start is an interface, you can host it wherever you like for example in an App.Xaml.cs, or the Main for a winform app, or even in a Web Service host.&lt;/p&gt;
&lt;p&gt;Does this seem useful? Any feedback would be appreciated.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8992502" width="1" height="1"&gt;</description></item><item><title>Excellent Article on Managed Extensions Framework and writing Addin-based Applications from Brad Abrams</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#8991077</link><pubDate>Wed, 08 Oct 2008 12:42:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8991077</guid><dc:creator>Thoughts and Ideas on Semantics and Contexts</dc:creator><description>&lt;p&gt;hi there, also I've talked a little bit in this blog on practical writing of Add-in-based applications,&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8991077" width="1" height="1"&gt;</description></item><item><title>re: Simple Introduction to Extensible Applications with the Managed Extensions Framework</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#8988074</link><pubDate>Wed, 08 Oct 2008 01:07:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8988074</guid><dc:creator>Cleve Littlefield</dc:creator><description>&lt;p&gt;I would love to see another article under the same writing approach that compares MEF to System.AddIn (as one other person commented) and/or any generic IoC container like StructureMap, Unity, Castle Windsor...&lt;/p&gt;
&lt;p&gt;What are the overlaps, dependencies, differences?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8988074" width="1" height="1"&gt;</description></item><item><title>re: Simple Introduction to Extensible Applications with the Managed Extensions Framework</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#8978915</link><pubDate>Tue, 07 Oct 2008 01:10:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8978915</guid><dc:creator>Richie Scott</dc:creator><description>&lt;p&gt;Excellent blog Brad - can you tell me where you think MEF fits with Unity, replace or complement?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8978915" width="1" height="1"&gt;</description></item><item><title>使用托管扩展性框架（MEF）创建可扩展应用的简介</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#8975780</link><pubDate>Fri, 03 Oct 2008 21:15:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8975780</guid><dc:creator>Joycode@Ab110.com</dc:creator><description>&lt;p&gt;【原文地址】 Simple Introduction to Extensible Applications with the Managed Extensions Framework 【原文发表日期】&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8975780" width="1" height="1"&gt;</description></item><item><title>re: Simple Introduction to Extensible Applications with the Managed Extensions Framework</title><link>http://blogs.msdn.com/b/brada/archive/2008/09/29/simple-introduction-to-composite-applications-with-the-managed-extensions-framework.aspx#8972427</link><pubDate>Thu, 02 Oct 2008 02:43:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8972427</guid><dc:creator>Dave R.</dc:creator><description>&lt;p&gt;Hi Glenn,&lt;/p&gt;
&lt;p&gt;Many thanks for the response. The 'syntactic sugar' you mention is exactly the sort of thing that sounds very useful, especially if it shields us mere mortals from having to do a lot of the plumbing for simple scenarios.&lt;/p&gt;
&lt;p&gt;It would be fantastic if you could share some of the API mock-ups with us - I'm passionate about this after reading Brad's FDG book ;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8972427" width="1" height="1"&gt;</description></item></channel></rss>