O'Reilly logo

AOP in .NET: Practical Aspect-Oriented Programming by Matthew D. Groves, Foreword by Phil Haack

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required