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