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 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.