This repository was archived by the owner on Nov 2, 2018. It is now read-only.
This repository was archived by the owner on Nov 2, 2018. It is now read-only.
Dispose services in order #463
Closed
Description
Services should be disposed in the reverse order that they were created.
If service A depends on service B, B will be created first, then A. Now when Dispose()
is called on A, it could have to use B. Unfortunately B might already be disposed as the order is not deterministic and based on a dictionary entry. I suggest we enforce the disposal order to be both logical and deterministic as far as the dependency order is defined.