wcf - AOP interception, Is it possible maintain the track of my exception with pre and pos functions call list -


i working on wcf , want implement functionality like

i: when exception occur in piece of code, want list function call before exception , after exception (those don't run due exception) ii: implement interception on function @ before , after built in functions there no complete information regarding trace complete function call of user.

for example if have 5 function a,b,c,d , e when exception occur @ c function, need complete information(function names, parameters list ect) of pre functions (a , b) , post functions(d , e). note: functions can nested.

 public class parametervalidator : iparameterinspector {     public object beforecall(string operationname, object[] inputs)     {         postacitivity(activityutil.populatebeforecallactivity(operationname, inputs)).wait();         return null;     }      public void aftercall(string operationname, object[] outputs, object returnvalue, object correlationstate)     {         //postacitivity(activityutil.populateaftercallactivity(operationname, outputs, returnvalue, correlationstate)).wait();     } 

}


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -