摘要: //执行action前执行这个方法 public override void OnActionExecuting(HttpActionContext filterContext) { //用于计算消耗时间 var stopWatch = new Stopwatch(); filterContext.Request.Properties[Key] = stopW... 阅读全文