PreviousNext

Dependency injection into actions in ASP.NET Core MVC 2.1

by bill-s, 2018-05-29T02:54:01.976Z

A few years ago I blogged about dependency injection directly into actions in ASP.NET Web API. The idea is quite simple – instead of injecting all of your dependencies via the controller’s constructor, you can inject them as parameters into the action handling a given HTTP request.

Read More