I'm using .Net MVC 4 with WebApi and in all articles that explain how to use DI Container with that has the following line of configuration in Global.asax: (http://blog.ploeh.dk/2012/03/20/RobustDIWithTheASPNETWebAPI.aspx)
GlobalConfiguration.Configuration.ServiceResolver.SetResolver(...)
But in my application has not ServiceResolver
type:
with intellisense:
What I'm doing wrong?
It's been renamed to DependencyResolver
in the RC:
GlobalConfiguration.Configuration.DependencyResolver = ... your custom DR
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