简体   繁体   中英

How to load all the PRISM modules in runtime?

In the meanwhile, I was creating module catalogs to load the modules using Unity. I've seen several applications which can load all the modules in a certain folder, I mean.. the application can load the modules in runtime.

Is it possible to do this?

You just have på override the GetModuleCatalog method in the Bootstrapper and return a new DirectoryModuleCatalog. See this question: Prism v4 Loading modules on demand with DirectoryModuleCatalog .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM