ModuleDependency hard reference with a string

Jul 26, 2012 at 9:34 AM
Edited Jul 26, 2012 at 9:36 AM

Hi,

In my MEF application I have module dependencies, but the ModuleDependency tag uses a string to reference another module. Is there a way of using it with a syntax that accepts a type, like:

[ModuleDependency(typeof<IModuleInterfaceForTheDependency>)]

Or any other ideas on how to do this type of injection or ensure that the dependent module is loaded? Wuold it be possible to include it in the next version of MEF? It would be great!!!

Thanks very much,

Pablo

Jul 26, 2012 at 4:48 PM

Hi Pablo, thanks for getting in touch!

[ModuleDependency] is part of Prism, not MEF. This would be a great question for the Prism developers.

Regards,

Nick

Jul 27, 2012 at 7:24 AM

Thanks Nick!

I will pass it to the Prism developers.

Regards,

 

Pablo