ipjohnson / Grace

Grace is a feature rich dependency injection container library
MIT License
337 stars 33 forks source link

Disposal order incorrect for Singleton #90

Closed ipjohnson closed 7 years ago

ipjohnson commented 7 years ago

Currently the order of disposal is incorrect for Singleton as it allocates a separate DisposalScope, to simplify the implementation and to guarantee disposal order the individual scope should be removed and the singleton should be added to root scope.