abp
abp copied to clipboard
IDistributedEventBus publish event by string EventName
Is there an existing issue for this?
- [X] I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
I want to write a generally used api for publishing any events. And it's a microservice, so it's hard to access the EventType.
can I publish event by eventName and json object data.
Describe the solution you'd like
Volo.Abp.EventBus.Distributed.IDistributedEventBus add a method like:
Task PublishAsync(string eventName, object eventData);
Additional context
No response
This is a good idea. Thank you, we'll think about it.
Thanks for your suggestion. We can discuss it.
PublishAsync can get an object and serialize it to JSON. That's the easy part.
What about the subscription side? Do you have a design suggestion?
Has there been any progress on this issue?