Articles : Page 1 of 1
- Filter:
- MVC2
- DependencyInjection
-
Dependency Injection in ASP.NET MVC: Final Look
Jun 1002Other posts in this series: Controllers Contextual controller injection Filters Action Results Views In this series, we’ve looked on how we can go beyond the normal entry point for dependency injection in ASP.NET MVC (controllers), to achieve some very powerful results by extending DI to filters, action results and views. We also looked at using the modern IoC container feature of nested containers to provide injection of contextual items related to both the controller and the vi...
-
Dependency Injection in ASP.NET MVC: Views
May 1019Other posts in this series: Controllers Contextual controller injection Filters Action Results And now for a bit more controversial shift. While most folks doing DI in ASP.NET MVC see the benefit of the ability to provide injection around the controller-side of things (filters, action results, controllers etc.), I’ve also seen a lot of benefit from injection on the view side. But before delve into the how, let’s first look at the why. The responsibility of a view is to render a model...
- 1

