I'm trying to call a function after/before every function call to BCL in an ASP.NET application.
For example when Server.MapPath
is called I want to call my own function right after and before that particular call.
Is there an AOP library that supports this? Can PostSharp or Afterthought do this?