How To Control Who Can Write Extensions For Your MEF Application

With the MEF DirectoryCatalog, it is easy to load extensions from a given directory for a MEF Application.  The DirectoryCatalog will scan any assemblies in that directory and find MEF extensions in those assemblies.  This means that adding an extension to a MEF application can be as easy as dropping a DLL in an extensions…

3

How to Debug and Diagnose MEF Failures

The Managed Extensibility Framework (MEF) helps make it easy to write extensible applications.  We hope that it is simple to understand the basics and get started.  However, MEF brings with it the possibility of new types of failures.  Without the proper knowledge, these failures can be difficult to diagnose.  This blog post will cover some…

12

Presentation at TechEd North America 2010

TechEd North America 2010 is in a few weeks, and I will be giving a presentation on MEF.  Below is the session description: DEV05-INT | What’s Wrong with My .NET Extensible MEF Application? Thursday, June 10 | 8:00 AM – 9:15 AM | Rm 347 The Managed Extensibility Framework (MEF) is a powerful new technology…

0

Overriding MEF Metadata

The Managed Extensibility Framework (MEF) is designed to allow open-ended extensibility.  It is easy to define a contract and load extensions which satisfy the contract.  This is accomplished with a collection import, which can look like this:[ImportMany] public IPlugin[] Plugins { get; set; } Extensions may need to be ordered or prioritized Often, the importer…

2

Podcast with Me on Testing on the MEF Team and at Microsoft

This week I was on the Herding Code podcast, discussing how we do testing on the MEF team and at Microsoft.  You can listen to it here. This was the first podcast I’ve been on and I enjoyed it quite a bit.  Some lessons learned: When recording a podcast over Skype, make sure you have…

1