Commit 1400948
committed
fix(runtime): remove duplicate module instance creation
Package-loaded modules were instantiated twice:
1. In ModuleLoader.LoadAsync -> RuntimeModuleHandle.ModuleInstances
2. In ModulusApplicationFactory -> ModuleManager
This caused double initialization (OnApplicationInitializationAsync called twice).
Fix: Only register host startup module (TStartupModule) to ModuleManager.
Package-loaded modules are now managed exclusively via RuntimeModuleHandle
and initialized through IHostAwareModuleLoader.InitializeLoadedModulesAsync().1 parent 06de676 commit 1400948
1 file changed
+4
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 153 | | |
177 | 154 | | |
178 | 155 | | |
| |||
0 commit comments