AOP in .NET introduces aspect-oriented programming to .NET developers and provides practical guidance on how to get the most benefit from this technique in your everyday coding. The book's many examples concentrate on modularizing non-functional requirements that often sprawl throughout object-oriented projects. Even if you've never tried AOP before, you'll appreciate the straightforward introduction using familiar C#-based examples. AOP tools for .NET have now reached the level of practical maturity Java developers have relied on for many years, and you'll explore the leading options, PostSharp, and Castle DynamicProxy.
About the Technology
Core concerns that cut across all parts of your application, such as logging or authorization, are difficult to maintain independently. In aspect-oriented programming (AOP) you isolate these cross-cutting concerns into their own classes, disentangling them from business logic. Mature AOP tools like PostSharp and Castle DynamicProxy now offer .NET developers the level of support Java coders have relied on for years.
About this Book
AOP in .NET introduces aspect-oriented programming and provides guidance on how to get the most practical benefit from this technique. The book's many examples concentrate on modularizing non-functional requirements that often sprawl throughout object-oriented projects. You'll appreciate its straightforward introduction using familiar C#-based examples.
This book requires no prior experience with AOP. Readers should know C# or another OO language.
- Clear and simple introduction to AOP
- Maximum benefit with minimal theory
- PostSharp and Castle DynamicProxy
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
Table of Contents
Part 1: Getting started with AOP
Chapter 1. Introducing AOP
Chapter 2. Acme Car Rental
Part 2: The Fundamentalsof AOP
Chapter 3. Call this instead: intercepting methods
Chapter 4. Before and after: boundary aspects
Chapter 5. Get this instead: intercepting locations
Chapter 6. Unit testing aspects
Part 3: Advanced AOP concepts
Chapter 7. AOP implementation types
Chapter 8. Using AOP as an architectural tool
Chapter 9. Aspect composition: example and execution
Appendix A. Ecosystem of .NET AOP tools
Appendix B. NuGet basics