关于[Accessing route values in endpoint middleware in ASP.NET Core 3.0]的摘要:
In my recent series about upgrading to ASP.NET Core 3.0, I described how the new endpoint routing system can be combined with terminal middleware (i.e. middleware that generates a response). In that post I showed how you can map a path, e.g. /version, to the terminal middleware and create an endpoint.
原文地址: https://andrewlock.net/accessing-route-values-in-endpoint-middleware-in-aspnetcore-3/