开发者

specify the order in which modules load

开发者 https://www.devze.com 2023-02-15 15:50 出处:网络
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.

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

精彩评论

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