Implementing DI with StructureMap

Now we will use a DI container called StructureMap to be the external component to resolve our dependencies.

In this recipe, we'll use another DI container, StructureMap. StructureMap is very well received by the community.

StructureMap is also very light, but it has almost every feature that you would expect from a complete DI container library.

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.