26 Nov

Refactoring Bloated Controllers with IServiceProvider

I have come into an ASP.NET MVC project that has a HomeController that takes at least 10 service arguments in its constructor. My first line of attack is to factor out the Action methods into separate controllers that only need a subset of the injected services to work properly. So, first and foremost I recognize […]

Read More