I’m implementing a Unity PRISM module on demand using IModuleManager. Suppose there are multiple points where functionality from the module is required. Am I right to call moduleManager.LoadModule("MyModule") at each of these points even if the module might have already loaded previously? It’s not going to reload is it?
And is this best practice?
Thanks
Agreeing with Viktor, the response in this thread suggests not to call LoadModule but to check the ModuleState using IModuleCatalog and IModuleManager.
Here is the code snippet from that post: