Vlad's blog

In programming veritas

Posts Tagged ‘Postsharp

Aspect-oriented programming in PostSharp

with one comment

Every application has a lot of code that can not be considered as a part of domain model or infrastructure. Examples are tracing, validation, caching and logging. This functionality is also called crosscutting concerns because it “cuts across” multiple abstractions in a program. Aspect-oriented programming (AOP) provides a way how to extract crosscutting concerns from code in separate components. Postsharp is one of the most popular AOP frameworks in .Net land. Classic AOP approach introduces a number of new concepts such as aspect,advice,pointcut. Postsharp suggests two model of programming. The first is straightforward and based on well known ideas of classes and method overloading. The second approach is more AOP centric and requires a long discussion. We will be focused on the first approach in this post.
Read the rest of this entry »


Written by vsukhachev

September 6, 2011 at 11:29 am

Posted in Development

Tagged with , ,