Does Policy Injection make sense for creating a service tracking trail?

Topics: Building and extending application blocks, General discussion, Logging Application Block, Policy Injection Application Block
Sep 2, 2011 at 4:49 PM
Edited Sep 2, 2011 at 4:50 PM

We have a need to track WCF user service operation calls by userid. There is an existing table that tracks web page usage for our web apps that will be extended to support WCF calls from our mobile client apps and capture such info as id's, client ip address, operation called, datetime called, etc.. I would like this to be an AOP (or AOP-like) implementation rather than explicitly make a call from within the method body of every public operation. It would also be nice to do decorate this at the class level rather than decorate each specific operation with a "tracking" attribute, if possible.

I am wondering if an existing EntLib 5 block can be used for this (Logging, for example) or if it makes more sense to use the Policy Injection block to write a custom implementation?

Sep 5, 2011 at 7:19 AM


Since this is an AOP/AOP-like implementation, then the best bet would be using the Policy Injection Application Block. You may also consider Unity's Policy Injection if this fits your requirement.


Noel Angelo Bolasoc
Avanade Software
Avanade, Inc.