I use Catel + Fody/LoadAssembliesOnStartup + Fody/ModuleInit. I would like to know, how can I specify the load order of modules?
I want to use the serviceLocator.RegisterTypeAndInstantiate for this I need to load modules in a specific order. How can I do this?
Asked
Active
Viewed 247 times
1 Answers
2
This is really tricky. In a perfect world, it shouldn't matter in what order the assemblies are loaded (you shouldn't be doing service instantiation in ModuleInit, keep the footprint as small as possible).
If you have a really valid reason (but please explain it), then we might consider fixing that in LoadAssembliesOnStartup so you can specify an order.

Geert van Horrik
- 5,689
- 1
- 18
- 32
-
Thanks for replying. I solved my problem I just added serviceLocator.ResolveType in InitializeAfterCreatingShell() – Alex808 Apr 08 '15 at 10:55
-
That's even better (both the usage of Orchestra and lazy resolving of the types :-)) – Geert van Horrik Apr 08 '15 at 11:48
-
1@Alex808 you should mark this as the correct answer – Simon Apr 21 '15 at 22:44