Skip to content

事件总线优化 #715

@magiboys

Description

@magiboys

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions