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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -