Anyone have any idea how to access the current route from middleware? There is no simple RouteTable like in ASP.NET5 to access.
The RouteData is what I need access to. In previous betas I was able to access it like so but that seems to be gone now.
var contextAccessor = context.RequestServices.GetRequiredService<IScopedInstance<ActionContext>>(); var values = contextAccessor.Value.RouteData.Values;