Chapter 8. Using AOP as an architectural tool

This chapter covers

  • Aspect initialization
  • Aspect validation
  • Improving a threading aspect using validation and initialization
  • Dealing with architectural constraints
  • Using architectural constraints to help with NHibernate
  • Working with multicasting attributes

AOP’s own architecture and its effect on the architecture of a large code base are important concepts to understand in order to use AOP effectively. When you’re designing and implementing an architecture, failing earlier in the process may reduce costs from rework, and PostSharp can help you quickly and automatically identify failures at compile time.

Until this point, we’ve been looking at PostSharp and AOP in a narrow way: one aspect ...

Get AOP in .NET now with O’Reilly online learning.

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