ninject / Ninject

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

Log DI exception when controller can't be resolved #407

Open nathan-newman6519 opened 4 months ago

nathan-newman6519 commented 4 months ago

I would like to log errors if ninject can not load a controller in a .net framework 4.8 app using bootstrap to load up ninject. I have tried creating a custom dependency resolver and a customer controller factory and neither of them seem to be used. Is there documentation on how to inject myself in the middleware so that I can catch these type of exceptions?