You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a custom DirectRouteProvider that overrides the GetActionRouteFactories method of the DefaultDirectRouteProvider in order to allow inheritance in attribute routing.
This allows me to use attribute routing in a BaseController to define route for every action that should be available to all the inheriting controllers (TestController : Basecontroller).
This works fine until I try to generate links to generic routes.
I can't name the routes dynamically based on the generic type as this is not allowed in attributes in C#.
I can't define a name for these routes as there would be many routes with the same name (for all inheriting controllers).
I thought I could use your package as Drum works well with unnamed routes, but I can't seem to find a way to use the uriMaker from inside the BaseController to reference the route from the inheriting controller in a generic way.
Is there a way out?
The text was updated successfully, but these errors were encountered:
I am using a custom DirectRouteProvider that overrides the GetActionRouteFactories method of the DefaultDirectRouteProvider in order to allow inheritance in attribute routing.
This allows me to use attribute routing in a BaseController to define route for every action that should be available to all the inheriting controllers (TestController : Basecontroller).
This works fine until I try to generate links to generic routes.
I can't name the routes dynamically based on the generic type as this is not allowed in attributes in C#.
I can't define a name for these routes as there would be many routes with the same name (for all inheriting controllers).
I thought I could use your package as Drum works well with unnamed routes, but I can't seem to find a way to use the uriMaker from inside the BaseController to reference the route from the inheriting controller in a generic way.
Is there a way out?
The text was updated successfully, but these errors were encountered: