06 2020 档案

摘要:.NETCORE异常捕获的管道实现方式(中间件) 一,中间件实现 using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspN 阅读全文
posted @ 2020-06-11 18:13 叶丶梓轩 阅读(435) 评论(0) 推荐(0)
摘要:在Startup中,我们看官网可以知道Configuration是注入服务和Configure配置管道,而我们的实现原理是在管道中直接返回HellowWorld,新建一个.netcoreMVC项目 一,第一种方法,最简单,我们直接在管道实现,在Configure添加一个直接返回的配置,如下代码 pu 阅读全文
posted @ 2020-06-10 17:47 叶丶梓轩 阅读(462) 评论(0) 推荐(0)