worthy code example?

Apr 29, 2011 at 5:03 PM

Hello,

Can someone point me to a MEF code example where the Interface is in its own project; then, the host and two plug-ins adhere/communicate with the same interface?

I just want to see one working example.  I have tried three code samples so far with no luck.  I want to see one code example to then step through the code and see how all the pieces interact (imports/exports).

MefLook - I tried separating the two projets but couldn't get MEF to instantiate the plug-in class with just a reference to the interface and then adding the reference to the plug-in dynamically.  Code is choking on foreign dependencies of the plug-in.

MefExplorer - Too complex, 20+ classes for a first example

MefStudio - Too Complex

This page here, baby steps.. has everything working out of single .cs file.  Whats the fun in that?

http://mef.codeplex.com/wikipage?title=Hosting%20MEF%20and%20the%20Container&referringTitle=Guide

I'll take any help!  thanks!  Meanwhile, I'll keep reading.