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

More control around tracking transient instances and their disposal #5

Open
drewnoakes opened this issue Aug 31, 2016 · 0 comments
Open

Comments

@drewnoakes
Copy link
Member

Otion to track transients via WeakReference<T> collection and dispose along with container.

Requestor can assume ownership of a newly created transient T instance by depending upon Unique<T> (which skips tracking the reference, but also throws for singletons), after which it must ensure correct disposal of the served transient, in its Dispose method or otherwise.

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

No branches or pull requests

1 participant