Exemplo n.º 1
0
 /// <summary>
 /// 执行后
 /// </summary>
 /// <param name="httpContext"></param>
 /// <param name="result"></param>
 public override void OnActionExecuted(HttpContext httpContext, ActionResult result)
 {
     ConsoleHelper.WriteLine($"Log2Atrribute请求地址:{httpContext.Request.RelativeUrl},回复内容:{result.Content}");
 }
Exemplo n.º 2
0
 /// <summary>
 /// 执行前
 /// </summary>
 /// <param name="httpContext"></param>
 /// <returns>返回值true为继续,false为终止</returns>
 public override bool OnActionExecuting(HttpContext httpContext)
 {
     return(true);
 }