tangxuehua/enode

当执行command用Items传值且CommandReturnType.EventHandled的时候就拿不到返回的结果了

Opened this issue · 1 comments

在群好友 @允 遇到了这个问题,我在询问中让提供了日志包括:

//有这样的日志 
AggregateRoot publishedVersion updated, aggregateRootTypeName:
//但是这个日志后面没有"CommandReplyAddress"
Received event stream equeue message:

然后我在DefaultEventCommittingService.PublishDomainEventAsync 中

            if (eventStream.Items == null || eventStream.Items.Count == 0) 
//这个判断不清楚是出于什么目的导致eventStream.Items没有续传processingCommand.Items中的 CommandReplyAddress
            {
                eventStream.Items = processingCommand.Items;
            }

找到了问题所在,望您再确认下