DI container disposal #4295
|
I am using ReactiveUI with UseReactiveUIWithMicrosoftDependencyResolver. I'd expect DI container to be disposed, is it a design choice? What is a proper was of disposing it |
Answered by
glennawatson
Feb 23, 2026
Replies: 1 comment
|
The non-Splat DI containers are essentially there for convenience, you are expected to handle the lifetimes yourself outside of that. Normally containers like Microsoft DI come with their own lifecycle registration with different platforms which you can register yourself. |
0 replies
Answer selected by
toddams
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The non-Splat DI containers are essentially there for convenience, you are expected to handle the lifetimes yourself outside of that. Normally containers like Microsoft DI come with their own lifecycle registration with different platforms which you can register yourself.