ninject / Ninject

the ninja of .net dependency injectors
http://ninject.org/
Other
2.68k stars 530 forks source link

Disposing kernel should dispose IAsyncDisposable singletons inside. #405

Open lsoft opened 10 months ago

lsoft commented 10 months ago

If StandardKernel is disposing, its singletons are disposing too. I guess it would be correct that IAsyncDisposable singletons will be disposed too.

Or, may be, it is correct to put IAsyncDisposable to the KernelBase too, and perform async-dispose if the kernel is async disposed...

Workaround is not known.