ardalis / AspNetCoreRouteDebugger

An ASP.NET Core Route Debugger implemented as a Razor Page
MIT License
68 stars 21 forks source link

Contraints are empty #11

Closed Saibamen closed 4 years ago

Saibamen commented 4 years ago

https://github.com/ardalis/AspNetCoreRouteDebugger/blob/50ffcb150ffab477568753f75c4c650b176070f3/SampleProject/Controllers/RoutesController.cs#L32

Even if I have x.ActionConstraints this gives me empty list image

Plus type for parameter should be DateTime, not nullable

ardalis commented 4 years ago

Probably should be Constraints in any case.

What are you expecting it to list?

Saibamen commented 4 years ago

I expected to print all HttpMethods: image

But selected param (x in my screenshot) is interface (IActionConstraintMetadata), so we can't reach that easy HttpMethods like in debug... image

Saibamen commented 4 years ago

Fix for this issue: https://github.com/ardalis/AspNetCoreRouteDebugger/pull/12