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 |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.