Clean up Dependency Injection support
Support for Dependency Injection could do with a bit of clean-up. Read more here: http://blog.ploeh.dk/2012/03/20/RobustDIWithTheASPNETWebAPI.aspx
We have updated the IDependencyResolver abstraction to support dependency scopes.
I agree with Mark, (an easy) decommissioning support is a must.
any mature IoC container requires that.
Adding IoC contaneir support with no decommissioning support basically is vanishing the feature itself.
MVC3 has it and also WebAPI prev6 has it too.. how come with new webapi has been made more difficult?
We are now tracking this issue in the Issue Tracker on our new CodePlex. Please take a look at the proposed resolution and post any feedback you have as comments:
mick delaney commented
we need a simple solution, at the moment its very error prone and i dont see any good reason coming from the asp.net team for they're approach....
Binjie Zhao commented
I'm with Mark, releasing machanism should be added to make it complete.