dotnet-sdk
dotnet-sdk copied to clipboard
Support custom subscriptions response.
Description
This PR supports custom subscriptions response. Mainly to integrate Event-Bus in the ABP framework.
Issue reference
No
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:
- [x] Code compiles correctly
- [x] Created/updated tests
- [ ] Extended the documentation
hi @halspang
Do you have time to review this PR?
Thanks for opening this PR, but I'm not really sure what the point of this change is. Can you provide some more background on it?
Thanks @halspang
The dapr/subscribe endpoint gets all endpoints that use TopicAttribute and returns JSON data.
This PR allows developers to change the subscription response, Such as hiding or dynamically adding some subscriptions.
This may not be commonly used, but it is convenient for some frameworks to integrate Dapr.
@maliming - Thanks. However, it seems like WithTopic would do this, right? And any additional integrations would need to come from the runtime since this is a json that we return to the runtime, we need to adhere to its contract. Or am I missing something here?
Yes, You're right.
We also have some concepts similar to publish/subscribe in our class library, and with the current design, we need to create a lot of controllers and methods for them and use TopicAttribute.
We want to create a controller and dynamically specify multiple topic/route.
Hey guys, any update? 🌹