PRISM + MEF + SatisfyImportsOnce

Topics: Questions
Aug 19, 2012 at 9:51 AM

Hi CatelTeam,

thanks for your amazing framework, it contains some pretty advanced features that help developing applications realy fast!

My question is related to using MEF in a PRISM application. Since i am using a non standard approach to loading modules into reagions (using AutoPopulateExportedViewsBehavior from one of the prism examples) i want to stick with MEF, so switching to your Bootstrapper is not an option for me.

The examples you provided for MEF and PRISM don't seem to cover my scenario.

The only thing i am a bit puzzled is if and when and where i have to call SatisfyImportsOnce. Do i have to do this in every module or just once in the shell?

Keep up the good work and thanks for sharing your framework!

Thanks,

Timo

 

Coordinator
Aug 20, 2012 at 6:51 AM

Good question, I don't know the answer. Please try it without calling SatisfyImportsOnce for every module and see what happens.