示例#1
0
        public Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
        {
            if (context.ActionDescriptor.EndpointMetadata.Any(m => m.GetType() == typeof(NoOprationLogAttribute)))
            {
                return(next());
            }

            return(_logHandler.LogAsync(context, next));
        }
示例#2
0
 public Task OnActionExecutionAsync(ActionExecutingContext context, ActionExecutionDelegate next)
 {
     return(_logHandler.LogAsync(context, next));
 }