Recycle singleton on application exit using Ninject

I am using Ninject for a desktop application. I notice that if I exit the application, the singletones that implement will not be deleted IDisposable.

What is the best practice for ensuring that all oneton t20 objects are correctly deleted using Ninject after exiting the desktop application?

+5
source share
1 answer

You must recycle the kernel to accommodate the remaining cached objects.

+6
source

All Articles