Ejemplo n.º 1
0
 public void OnActionExecuted(ActionExecutedContext context)
 {
     // Do something after the action executes.
     Console.WriteLine("after");
     MyDebug.Write(MethodBase.GetCurrentMethod(), context.HttpContext.Request.Path);
 }
Ejemplo n.º 2
0
 public void OnActionExecuting(ActionExecutingContext context)
 {
     // Do something before the action executes.
     MyDebug.Write(MethodBase.GetCurrentMethod(), context.HttpContext.Request.Path);
     Console.WriteLine("before");
 }