I need to get the route values for an arbitrary URL in ASP.NET MVC Core.
It could be something like this SO question: How to determine if an arbitrary URL matches a defined route, because I haven't found any direct way to do it.
And I haven't been able to do it with that approach either.
It looks like once I have an HttpContext with a Request for the url, it's easy to get the route values, and looking at the source code for aspnet/Hosting in GitHub I got to the point where HttpContextFactory gets created, but that was it, just couldn't go any further!
Does someone know how to do this?
Thanks in advance!