using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc.Filters;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace WIDESEAWCS_Core.Filter
|
{
|
public class ActionExecuteFilter : IActionFilter
|
{
|
public void OnActionExecuted(ActionExecutedContext context)
|
{
|
//throw new NotImplementedException();
|
}
|
|
public void OnActionExecuting(ActionExecutingContext context)
|
{
|
//throw new NotImplementedException();
|
//foreach (KeyValuePair<string, object?> item in context.ActionArguments)
|
//{
|
// if (item.Value != null)
|
// {
|
// string name = item.Value.GetType().Name;
|
// Console.Out.WriteLine(name);
|
// }
|
// else
|
// {
|
// context.Result = new JsonResult(new { Status = false, Message = "参数不能为空" });
|
// return;
|
// }
|
//}
|
|
}
|
}
|
}
|