Monday, November 30, 2009

Plug into MEF in 10 minutes or less

Jeremy Likness' Blog - MEF: Build a Plugin in Under 10 Minutes

“In preparing for an upcoming talk I'll be giving on the Managed Extensibility Framework (MEF), I wanted to demonstrate how fast and easy it is to use in a sample, reference application. This application creates a dynamic plugin. I first link a plugin and show it active, then I create a second plugin and show how it is dynamically added to the program during runtime. It all takes under 10 minutes and would be faster if I didn't want to pace the demo to show the steps involved.

…” [GD: Click through for the video link]

MEF rocks and  having it baked into .Net 4 is only icing on the cake. Sure it’s the new kid on the block, but if you’ve ever tried to use the System.Addin model of extending you’re app’s, you’ll thank heaven for MEF.

Look, if you’re thinking of writing your own plugin/addin/thing, stop. Stop now, don’t go past Go, go directly to MEF… 

Here’s some MEF posts that caught my eye in the last month’ish (and I’ve been meaning to blog about but…);


Related Past Post XRef:
Bart’s Beautiful and Benevolent Personally Guided, “from the Why to the How,” Tour of MEF – The 30+ page tome edition (aka INSERT MEF.* INTO Your.Brain)
Fan (i.e. someone not on the team) MEF Tutorial and Hands On Lab
Getting MEF’ed in 20’ish lines of code - A short and code focused MEF introduction
The Redmond Developer & Kathleen Dollard get MEF’ed with VB
Managed Extensibility Framework (MEF) CTP2 Released – Now with the full source
The Managed Extensibility Framework (MEF) CTP Released (Not to be confused with the Managed Addin Framework [MAF] which became System.Addin)

No comments: