MASA.Framework icon indicating copy to clipboard operation
MASA.Framework copied to clipboard

事件总线优化

Open magiboys opened this issue 1 year ago • 1 comments

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

magiboys avatar Apr 24 '24 08:04 magiboys

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

duiapro avatar Apr 24 '24 09:04 duiapro