MEF Samples


MEFlook

mefoutlook.png

MEFShapes

mefshapes.png

Extensible File Explorer

file explorer.png

PictureViewer

PictureViewer.jpg
Last edited Jul 14 at 12:44 AM by chrisszurgot, version 30
Comments
irperez Nov 9 2008 at 11:44 PM 
Will this technology work with ASP.Net based applications? If so, could we see an ASP.Net based demo? We are seriously considering this technology for our next project, but it needs to work with ASP.Net

waldred Nov 11 2008 at 12:34 AM 
Yes, this will work with any .NET application. What in particular are you looking to see demonstrated in ASP.NET?

EricTN Nov 12 2008 at 8:58 PM 
"What in particular are you looking to see demonstrated in ASP.NET?" - I'll provide a couple of ideas: In one sample, a no-frills RSS feed reader ASP.NET app is the basis. The plug-ins allow viewing the RSS in different ways. Second idea: Try to boil down into the very simplest terms, a community web app that allows "applications" to be added to a page on the site. The plug-ins are a few very simplistic example "applications".

dstrommer Feb 4 at 2:48 AM 
It seems the MEF works only with a host (exe, iis, etc.), what if you wanted to use the MEF in a component library DLL, like the Enterprise Library? In other words, the component library would contain base functionality but use MEF internally. Consuming applications wouldn't know that your component library used the MEF. Does that make sense?

BigAndy Apr 9 at 10:03 AM 
With regards to ASP.Net, it would be nice to see an example. Using MEF can ascx usercontrols reside in plug-ins, or are we still stuck with writing server controls? (The inability to share user controls amongst different web applications always struck me as a major limiation of ASP.Net).

EricTN Apr 24 at 8:25 AM 
Good news: Maarten Balliauw has posted a MEF sample for ASP.NET MVC. Find it here: http://blog.maartenballiauw.be/post/2009/04/21/ASPNET-MVC-and-the-Managed-Extensibility-Framework-(MEF).aspx and Hamilton Verissimo has posted an MEF ASP.NET MVC sample here: http://blogs.msdn.com/hammett/archive/2009/04/23/mef-and-asp-net-mvc-sample.aspx

GerhardKreuzer May 18 at 12:40 PM 
Is MEF also good for object collaboration or is it only a UI tool

irperez Jul 21 at 4:13 PM 
Its a start to see an MEF example in ASP.Net MVC, but how about normal ASP.Net. I have yet to see a clear cut simple hello world example. This is kind of telling me that its not possible. ASP.Net needs a good way to easily have plug-in functionality with user controls...

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2009.10.27.15987