MEF Samples


MEFlook

mefoutlook.png

MEFShapes

mefshapes.png

Extensible File Explorer

file explorer.png

PictureViewer

PictureViewer.jpg

Last edited Dec 22, 2009 at 6:11 AM by gblock, version 31

Comments

desnet Aug 3, 2011 at 3:56 PM 
For example, an ASP.NET file manager: http://www.gleamtech.com/products/fileultimate/asp-net-file-manager-control

JoshuaBelden Apr 28, 2011 at 6:29 PM 
It's easy to use MEF in an ASP.Net based application. I think what people are asking for is a demo of how to use MEF CORRECTLY in an ASP.Net application. I'm extremely interested in a demo of an implementation that addresses both performance and scalability. I have found very little on addressing the lifetime of catalogs and containers in an ASP.Net application. I have several questions around best practices: What can be global to the application? What should be per request? What thread-safety pitfalls do we need to avoid? What ASP.Net technologies could be turned into plug ins? Server Controls, User Controls, Pages, Master Pages?

You know, that sort of thing.

mrxer Dec 6, 2010 at 4:42 AM 
Any updates on MEF with APS.net demo using User controls?

jayaprakash_s Jul 2, 2010 at 11:53 PM 
Any updates on MEF with APS.net demo using User controls?

henrikweimenhog May 18, 2010 at 11:23 AM 
I made simple ASP.net demo for an early version of MEF which demonstrates how to reuse a "file manager" between web user controls. I am trying to revive that sample with the latest release.. just some finishing touches left.

hhvdblom Jan 5, 2010 at 3:57 PM 
I am planning to write a WebReader Service. My first plan was to write a couple of adapters for it, as example an RSSAdapter, SOAPAdapter and AtomAdapter. After that I want to write Custom SOAPAdapters for specific Web Services. All Adapters serialize information to the same format to a SQL Server Database. May be its a good idea to write the Custom SOAPAdapters with MEF because then it will be possible to develop a Proof of Concept that can be extended with other Adapters.

irperez Jul 21, 2009 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...

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

EricTN Apr 24, 2009 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

BigAndy Apr 9, 2009 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).

dstrommer Feb 4, 2009 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?

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".

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?

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