Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support dispose for all instances #210

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blake-mealey
Copy link

My team recently adopted the container.dispose method for our project but found it wasn't working for us. It turns out the current dispose method only disposes instances which were created via the "constructor" registration (e.g. container.register(ClassName)). Our project exclusively uses factory and value providers so this doesn't work for us.

In this PR I've updated the internal logic to support disposal for any resolved instance.

@blake-mealey blake-mealey force-pushed the blake/support-dispose-for-all-instances branch from 479fbb3 to 0a1e154 Compare September 22, 2022 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant