Summary
In this chapter, we learned how an existing piece of technology leverages the power of the .NET runtime to make it easier for developers using the technology to do so. From the use of metadata in the right context, we get to focus on delivering business value and don’t have to worry about how it is all configured. It also automatically gives us a certain structure to abide by, which in the long run will yield a more maintainable, extensible, and predictable code base. By adding the action filter as we did, we added what we call a cross-cutting concern, something we will revisit in more detail in Chapter 13, Applying Cross-Cutting Concerns.
In the next chapter, we will dive into how frameworks such as ASP.NET are capable of doing discovery and automation, and how we can leverage the .NET runtime type system to discover types and metadata to achieve something similar.