使用Serilog的ASP.NET核心5 Razor页面如何抑制对重执行页面的第二个调用的Serilog日志记录?// program.cs{ // if only do warning, then will get duplicate error messages when an exception is thrown, then a
// No such overload, I wish there was
}ApiController.BadRequestBadRequest();3.BadRequest(ModelStateDictionary modelState);
即使使用#3,模型状态字典也是终极的--一层对另一层的深度集