Category: Code

Share Dependency Resolvers between MVC and Web API

I was messing around with a web project last week that required the use of MVC 5 and Web API in the same application. I was also experimenting with Unity, as it was my first time and had usually chosen something like MEF or StructureMap to handle my dependencies. Previously, I also went the “classic”…


Dependency injection out-of-the-box with ASP.NET 5

I recently wrote a blog post about sharing Dependency resolvers between MVC and Web API, but I got excited to see this article from MSDN today. I’m a huge proponent of Dependency Injection to decouple service and the pluggable architecture it brings, so I’m glad to see if taking a front row seat in the upcoming .NET framework. The…