Patrick\’s Bytes

26, February 2007

AOP from Microsoft

Filed under: .NET Programming — patrickyong @ 10:32 pm

About a week ago, news from the Enterprise Library team that there will be a new application block know as Policy Injection Application Block. Basically this AB behaves as a AOP framework. I won’t call this a AOP framework as yet (althought there are similarity) until the AB is release later. Edward Jezierski posted an architecture overview of PIAB here.

Currently I am testing out Puzzle’s NAspect for my projects. I had look at Spring.NET, Castle and Aspect.NET (Aspect.NET has got help from Microsoft Research and they use the Pheonix framework) and one advantage of Puzzle is its “light weightness” without loading the whole framework. With the source code provided I can trim down the assembly and embed it into my projects.

One thing I favors in PIAB is the use of attribute in the rules condition, ie. apply the handlers to all method with a tag [Tag(“Audit”)] instead of checking for class & method name signature. Althought PIAB will have function for both methods, which gives users more flexibility.

Yet to see is how to put a AOP/ PIAB handler on web application especially presenter classes created using Web Client Software Factory and Web Services Software Factory. As pointed out by Patrik Löwendahl in his blog there might be some obstacles using this because most AOP framework make use of remoting proxy class (such as Puzzle’s NAspect and PIAB). This is one area I will do some research when PIAB comes out to test out how WebSF work with PIAB.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: