AppDomain for each assembly

May 2, 2010 at 10:16 PM

Hi everybody,
I would like to create an AppDomain for each dll in my Plugins dir.
So my idea is:

1) create a custom DirectoryCatalog which derives from DefinitionProviderPartCatalog
2) create a custom ObjectFactory which uses the AppDomain's CreateInstanceAndUnwrap method in order to create the object

What do you think?
Any other ideas?

Thanks
Federico

Jul 19, 2010 at 10:45 PM

You might be interested in this: http://mef.codeplex.com/Thread/View.aspx?ThreadId=219771.

-Nick