- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我试图理解它们时,它们似乎都用于将请求路由/映射到某个端点
最佳答案
用户路由 :将请求与端点匹配。
使用端点 : 执行匹配的端点。
它将路由匹配和解析功能与端点执行功能分离,直到现在,这些功能都与 MVC 中间件捆绑在一起。
This makes the ASP.NET Core framework more flexible and allows other middlewares to act between UseRouting and UseEndpoints. That allows those middlewares to utilize the information from endpoint routing, for example, the call to UseAuthentication must go after UseRouting, so that route information is available for authentication decisions and before UseEndpoints so that users are authenticated before accessing the endpoints.
关于c# - app.UseRouting() 和 app.UseEndPoints() 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57846127/
我正在尝试将 signalR 合并到我的项目中,但是当我尝试使用 app.UseEndpoints(...) 时,它给我一个错误提示“IApplicationBuilder 不包含 UserEndpo
我遇到过由于多次调用 app.UseEndpoints(...) 而跳过中间件的情况。 看看这个启动代码,我希望 SetUser() 中间件在 MVC Controller 之前执行。 但是在调试时,
我想在不使用 Controller 的情况下处理对 ASP.NET Core 中特定路径的请求。 看来我现在有两个选择: 使用 app.UseRouter(r => r.MapPost(...)):
当我试图理解它们时,它们似乎都用于将请求路由/映射到某个端点 最佳答案 用户路由 :将请求与端点匹配。 使用端点 : 执行匹配的端点。 它将路由匹配和解析功能与端点执行功能分离,直到现在,这些功能都与
现在刚刚学习 ASP.NET Core,在一些指南中我看到了 app.UseEndpoints() 方法。 但是当我创建我的 ASP NET CORE 项目时,我只在 StartUp.cs 中看到了
我是一名优秀的程序员,十分优秀!