Commit 47c70cb
Fix disposal and dependency injection timing issues
- Move attribute property injection before object initialization to ensure dependencies are ready
- Restore proper disposal triggering in finally block to ensure test instances are disposed consistently
- Use Task.WhenAll for parallel disposal with proper error handling to avoid deadlocks
- Maintains object tracking through ObjectTracker while ensuring disposal events are triggered
Fixes test failures where disposable objects were not being disposed and attributes were missing dependencies.
Co-authored-by: Tom Longhurst <thomhurst@users.noreply.github.com>1 parent 21f697d commit 47c70cb
1 file changed
+25
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
332 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
333 | 355 | | |
334 | 356 | | |
335 | 357 | | |
| |||
0 commit comments