Open fabistb opened 1 year ago
As far as I'm aware, there is no direct reason for it not working. We just parse the attributes and add them to an endpoint collection.
I'm not super familiar with this space though, does this work for other attributes that are nested like this? I'm worried the reason it wouldn't work is because we're taking the literal and don't have the information to interpret the path when we read the attributes.
Thanks for the explanation.
Not sure here since I also can't think about an attribute currently which is as nested as this one.
It looks like the Dapr route building logic doesn't support routes with parameters (i.e. the logic assumes the parts are all literals):
As @halspang suggests, we'd need to investigate whether we can get the resolved values out of ASP.NET in order to build the route strings.
I believe this is the same issue as #791 and #882. As was mentioned in those issues, there is a fundamental question of how Dapr subscriptions should work in a multi-versioned API (the likely reason for having dynamic routes). For example, if two controllers representing two versions of the same API have the same topics (i.e. what's the likelihood of these changing between API versions), how should messages be delivered?
Currently the [Topic] cant be used if the route contains a dynamic part. A example here is a version in the route.
Example dynamic route:
Example static route:
Is their a specific reason why the dynamic routes aren't supported?