CHAPTER 4

image

Modules

In the previous chapter, I showed you how to handle life-cycle requests in the global application class. The problem with this approach is that the code quickly becomes a mess, especially when you are trying to perform different kinds of work driven by the same set of events. In this chapter, I describe modules, which are self-contained components that receive and handle life-cycle requests and which can monitor or modify a request and its response. Not only do modules avoid a morass of code in the global application class, but they can be packaged up and used in multiple applications, providing a useful mechanism for creating ...

Get Pro ASP.NET MVC 5 Platform 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.