Resolving the current route name in ASP.NET Core 3.1
Read OriginalThis technical article explains how to resolve the current route name in ASP.NET Core 3.1 for API metrics tracking. It details the shift from ASP.NET Core 2.2's IRouteValuesAddressMetadata to 3.0+'s EndpointNameMetadata, providing code examples for a custom extension method to get the route name from HttpContext in middleware.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser