Chapter 7. AOP implementation types

This chapter covers

  • How runtime weaving works
  • The difference between proxy and dynamic proxy
  • Defining a postcompiler
  • What postcompiled code looks like
  • The trade-offs between runtime and compile-time weaving

After reading this chapter, you might still not be able to implement your own AOP tool, but you should have a basic understanding of how the two main types of AOP tools work. These two main tools, which I’ve been using in this book, are PostSharp and Castle DynamicProxy.

PostSharp is a postcompiler that performs weaving at compile time; Castle DynamicProxy generates proxy classes at runtime. I’ve glossed over some of the details of how these tools work in favor of how to use them. But the more ...

Get AOP in .NET now with the O’Reilly learning platform.

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