Commit 14a4389
authored
Fix master CI route-404: remove AppDomain force-load that locks out PluginLoader (#14)
Stop force-loading the SamRockProtocol assembly into the AppDomain from the test fixture ctor. PluginManager scans AppDomain first and registers any plugin it finds with Loader=null, which dedup-locks out the file-based DEBUG_PLUGINS / plugins-folder path that would register a non-null PluginLoader. With Loader=null, mvcBuilder.AddPluginLoader is skipped at PluginManager.cs:255 and the plugin's controllers never make it into MVC ApplicationParts - the plugin shows in DI but all its routes 404.
Removing the force-load lets the file-based path resolve the plugin via PluginLoader.CreateFromAssemblyFile (Loader non-null) and registers the controllers with MVC.
Retry-with-backoff on the OTP create call kept as cheap defense for any residual timing window.1 parent c881ef2 commit 14a4389
2 files changed
Lines changed: 32 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
65 | 73 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
70 | 88 | | |
71 | | - | |
| 89 | + | |
72 | 90 | | |
73 | 91 | | |
74 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
0 commit comments