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

Part 2. The Fundamentals of AOP

These four chapters cover common types of aspects provided by third-party frameworks. Chapter 3 focuses on method interception and how to use Castle DynamicProxy as well as PostSharp to intercept methods.

In chapter 4, method interception and method bounding are compared. You’ll learn how to write an ASP.NET HttpModule to help detect whether a user is on a mobile device, in order to direct them to your mobile app.

Location interception, covered in chapter 5, is a less common feature of AOP frameworks, but you’ll learn all about it using PostSharp. Another tool that will be explored in this chapter is NotifyPropertyWeaver, which uses a more specialized approach.

All code needs to be tested, even when using AOP. ...

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