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

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

Open
rocleegithub opened this issue Dec 10, 2021 · 1 comment

Comments

@rocleegithub
Copy link
Contributor

rocleegithub commented Dec 10, 2021

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

//有这样的日志 
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;
            }

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

@luchaoshuai
Copy link

luchaoshuai commented Dec 10, 2021 via email

@rocleegithub rocleegithub changed the title 当执行command用Items传值且CommandReturnType.EventHandled的时候就那不到返回的结果了 当执行command用Items传值且CommandReturnType.EventHandled的时候就拿不到返回的结果了 Dec 10, 2021
rocleegithub pushed a commit to rocleegithub/enode that referenced this issue Dec 10, 2021
tangxuehua added a commit that referenced this issue Jan 31, 2022
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