abp icon indicating copy to clipboard operation
abp copied to clipboard

IDistributedEventBus publish event by string EventName

Open tky753 opened this issue 2 years ago • 3 comments

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

tky753 avatar May 29 '23 08:05 tky753

This is a good idea. Thank you, we'll think about it.

gterdem avatar Jul 02 '23 04:07 gterdem

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?

hikalkan avatar Jul 02 '23 09:07 hikalkan

Has there been any progress on this issue?

zengande avatar Aug 13 '24 01:08 zengande