01 2023 档案

摘要:1.Startup.ConfigureServices services.AddHttpClient(); 2.构造函数注入 private readonly IHttpClientFactory _clientFactory; public XXX(IHttpClientFactory clien 阅读全文
posted @ 2023-01-17 14:18 Robot-Blog 阅读(301) 评论(0) 推荐(0) 编辑
摘要:背景: 参数没有通过校验模型检查时,直接返回错误信息,但是这个错误信息可读性很弱,并不能被前端很方便的使用 { "type": "https://xxx", "title": "One or more validation errors occurred.", "status": 400, "tra 阅读全文
posted @ 2023-01-13 17:22 Robot-Blog 阅读(51) 评论(0) 推荐(0) 编辑
摘要:1.Nuget install-package Quartz.Extensions.Hosting 2.添加文件:WhileJob /// <summary> /// while quartz job /// </summary> [DisallowConcurrentExecution] publ 阅读全文
posted @ 2023-01-13 16:22 Robot-Blog 阅读(313) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示