hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.88k stars 163 forks source link

Improvement for DiagnosticsWindow: Types are not removed and RefCount does only increase #594

Open lolhans opened 8 months ago

lolhans commented 8 months ago

When dynamically instancing and destroying LifetimeScopes, the Types do not get removed from the Diagnostics Window and the RefCount on Contracts does only increase.

I would rather expect a behaviour, where the Type gets removed and the RefCount (e.g., on a contract of the ProjectInstaller) decreases everytime when the Dispose() method is called on a LifetimeScope, that implements a specific ContractType.