开发者

specify the order in which modules load

I am replacing unity with mef in my prism application. One of the things I see is that mo开发者_C百科dules are also affected as well.

My IModule classes are now all empty. How do I specify the order in which the modules load with the MEF bootstrapper? Does it even matter?


Hopefully it doesn't matter. If you have module dependencies, you should specify them with the [ModuleDependency] attribute, but if your modules are empty, I don't see that being a problem. I imagine you are concerned that any exported types might have dependencies, but MEF figures all of that out for you. No need to worry.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜