-
I found that the RouteId is assigned to context.GetEndpoint.DisplayName and it works fine for my use case, which is to perform some transformation and validation based on that, but it does look brittle at the moment as it could change in upcoming versions. Is there any other way to get access to the RouteId (or even RouteConfig) using the HttpContext? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
What kind of transformations did you have in mind? We've got a whole infrastructure for that. Edit: And no, that's the only way to get the route id right now. |
Beta Was this translation helpful? Give feedback.
What kind of transformations did you have in mind? We've got a whole infrastructure for that.
https://microsoft.github.io/reverse-proxy/articles/transforms.html
Edit: And no, that's the only way to get the route id right now.