How to specify Module Dependencies when using Discovering Modules in a Directory?

Topics: Prism v4 - WPF 4
Nov 16, 2010 at 6:30 PM

In a WPF app, how can I specify Module Dependencies when using Discovering Modules in a Directory?

Nov 16, 2010 at 7:12 PM

Hi,

You could use the ModuleDependencyAttribute class to specify dependencies when using directory lookup module loading. So your code might be similar to the following:

[Module(ModuleName = "ModuleD")]
[ModuleDependency("ModuleB")]
public class ModuleD : IModule
{

}

If you need more guidance on this topic, you could take a look at the following documentation section: How to: Define Dependencies Between Modules

Hope this helps.

Fernando Antivero
http://blogs.southworks.net/fantivero