AppDomain for each assembly

May 7, 2010 at 6:06 PM

Hi everybody,
I would like to create an AppDomain for each dll in my Plugins dir and I would like to use MefContrib
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