Chapter 18. Dependency injection and extensibility

 

This chapter covers
  • Building custom controller factories
  • Dependency injection with controllers
  • Using the dependency resolver with StructureMap
  • A survey of extension points

 

Knowing how to build maintainable software is important. Probably the vast majority of enterprise systems spend more time in the maintenance period of their lifecycle than their initial development. For example, imagine you’re developing a financial system that’s going to be in use for the next five years. It may take six months or a year to initially develop, but once it’s in use by the customer, it’ll enter an ongoing maintenance phase for the rest of its lifetime.

During this time, it’ll probably be necessary to ...

Get ASP.NET MVC 4 in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.