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. Chapter 6 covers unit testing of aspects as well as testing code to which that aspects are applied. We’ll use NUnit with Castle DynamicProxy and PostSharp, and discuss dependencies within aspects.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset