From 24de6e913e754b4447a1f4a923fe16c18b7c2ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B8ygaard?= Date: Thu, 1 May 2025 13:39:19 +0200 Subject: [PATCH] Change command result for command processor to return event stream from command instead of result. This allows usages of derived instanses of EventStreamId from the returned Command result --- src/Atc.Cosmos.EventStore.Cqrs/Commands/CommandProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Atc.Cosmos.EventStore.Cqrs/Commands/CommandProcessor.cs b/src/Atc.Cosmos.EventStore.Cqrs/Commands/CommandProcessor.cs index e5405ff..dc843ca 100644 --- a/src/Atc.Cosmos.EventStore.Cqrs/Commands/CommandProcessor.cs +++ b/src/Atc.Cosmos.EventStore.Cqrs/Commands/CommandProcessor.cs @@ -85,7 +85,7 @@ await handler activity.Changed(); return new CommandResult( - result.Id, + command.GetEventStreamId(), result.Version, ResultType.Changed, context.ResponseObject);