Chapters 6 and 7 added to MEAP
Chapters 6 and 7 are now available in the MEAP of Aspect-Oriented Programming in .NET.
These chapters really start to compare and contrast compile-time AOP (e.g. PostSharp) with runtime AOP (e.g. Castle DynamicProxy).
Chapter 6 show how AOP affects unit-testing. Until this chapter, it may seem like I have a clear bias in favor of PostSharp, since it has powerful features and is very simple to use. But with that power comes a cost, and since PostSharp performs its weaving at compile time, it's more difficult to test than Castle DynamicProxy.
However, it's still possible, and chapter 6 shows you some options for doing it.
Up until chapter 7, I've been showing you how to use AOP. In chapter 7, we'll take a short peek under the hood, to how the two approaches work, and the implications of using each approach.
If you have questions, comments, or criticism, please start a thread in the Manning Author Online forum for the book.