ASP.NET 5 Dependency Injection – Bring Your Own Container

The default DI container that comes with ASP.NET 5 is basic, and doesn’t support all of the features found in third-party containers. In this post we’ll see how to replace the default container with StructureMap and Autofac. Keep in mind that the ASP.NET 5 integration for these containers were only recently released and may still […]

ASP.NET 5 Dependency Injection – Lifetimes

Dependency injection is a fundamental part of ASP.NET 5, and before we continue our discussion of configuration it will be helpful to see how we work with dependency injection in ASP.NET 5. This post assumes you understand Inversion of Control (IoC) and Dependency Injection (DI). In a nutshell, these principles allow us to keep our classes […]