I'm using Ninject for a desktop application. I'm noticing that if I exit the app, singletons that implement IDisposable
are not being disposed.
What is the best practice for ensuring all IDisposable
singleton objects get disposed of properly with Ninject upon exiting a desktop application?
You have to dispose the kernel in order to dispose the remaining cached objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With