Using the Built-In Dependency Injection in ASP.NET Core 2.0

added by DotNetKicks
10/2/2017 1:27:54 PM

2 Kicks, 254 Views

ASP.NET Core has a built-in Dependency Injection (DI) container that takes care of things for us with very little code. As an experiment, I added DI to the WebAPI service that I created a couple weeks ago. Let's walk through that process to see what we need to do.