How to control the order of module initialization in Prism

后端 未结 7 869
暖寄归人
暖寄归人 2020-12-28 21:34

I\'m using Prism V2 with a DirectoryModuleCatalog and I need the modules to be initialized in a certain order. The desired order is specified with an attribute on each IModu

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 22:00

    In the AddModule() call in the Bootstrapper, you can specify a dependency. So, you can say A depends on B depends on C, and that will determine load order.

    http://msdn.microsoft.com/en-us/magazine/cc785479.aspx

提交回复
热议问题