Oct 13, 2011 at 9:49 PM
Edited Oct 13, 2011 at 9:52 PM
I need to create an on-demand module (lets name it ModuleManager) that can load modules from specified directory.
public class ModuleManager : IModule
public void Initialize()
DirectoryCatalog _directoryCatalog = new DirectoryCatalog("Modules");
I set a breakpoint at the line
and I see the types from the modules placed at "Modules" catalog inside this._aggregateCatalog.Parts property.
But Initialize() methods from those modules are never called and no events from this modules are broadcasted too.
It looks that I don't understand some basic things about module initialization in MEF.
Will be glad to get any help.