Synopses & Reviews
Summary
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.
What's Inside
- 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.
About the Author
Matthew D. Groves is a developer with over ten years of professional experience working with C#, ASP.NET, JavaScript, and PHP.
Table of Contents
PART 1 GETTING STARTED WITH AOP
- Introducing AOP
- Acme Car Rental
PART 2 THE FUNDAMENTALSOF AOP
- Call this instead: intercepting methods
- Before and after: boundary aspects
- Get this instead: intercepting locations
- Unit testing aspects
PART 3 ADVANCED AOP CONCEPTS
- AOP implementation types
- Using AOP as an architectural tool
- Aspect composition: example and execution
Synopsis
Some functionality of an application, such as logging or authorization, cuts across all layers. In standard object oriented programming, it can be difficult to separate code that satisfies these cross-cutting concerns from code that implements the core behaviors of applications. Aspect-oriented programming (AOP) is a technique in which cross-cutting concerns are isolated into their own classes, making those behaviors much easier to maintain without having to worry about breaking anything else in an app and it can save hours of tedious work.
AOP in .NET introduces aspect-oriented programming and provides practical guidance on how to get the most benefit from this technique in everyday coding. Examples focus on modularizing non-functional requirements and developers will 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 this book discusses the leading options: PostSharp and Castle DynamicProxy.
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
About the Author
Matthew D. Groves is a developer with over 10 years of professional experience in education, consulting, and product development. He concentrates on web applications, using C# with ASP.NET, JavaScript, and PHP.