Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

事件总线优化 #715

Open
magiboys opened this issue Apr 24, 2024 · 1 comment
Open

事件总线优化 #715

magiboys opened this issue Apr 24, 2024 · 1 comment

Comments

@magiboys
Copy link

事件总线优化,
1.AggregateRoot的AddDomainEvent方法,目前限制只能是IDomainEvent,希望开放为IEvent,以便直接添加IIntegrationEvent事件,目前需要新建一共空的IDomainEvent类继承IIntegrationEvent事件才能添加,导致很多空类,造成代码冗余。
2.IEventBus希望可以扩展两个方法,本地事件和集成事件分开发布,目前处理集成事件时,需要新建本地事件包装才能处理,导致代码冗余
image
image

@duiapro
Copy link
Contributor

duiapro commented Apr 24, 2024

1.领域事件你可以尝试一下继承IntegrationDomainEvent
2.集成事件直接转发为线程内事件起初是支持这样使用的,中途发现这样使用有问题1.0.0版本之前修复了此功能。
后续计划将再次支持此功能和支持泛型事件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants