Ben Foster 3/19/2020

Resolving the current route name in ASP.NET Core 3.1

Read Original

This 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.

Resolving the current route name in ASP.NET Core 3.1

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week