Skip to content

Change command result to return event stream id from command instead of result #73

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

Merged

Conversation

jonr-clever
Copy link
Contributor

Change command result for command processor to return event stream from command instead of result. This allows usages of derived instances of EventStreamId from the returned Command result.

E.g. i can outside the ExecuteAsync call use the returned stream id with polymorphism to do the following code:

if (eventStreamId is RfidCardId rfid)
{
    return rfid.Id;
}

given my class RfidCardId:

public class RfidCardId : EventStreamId
{
    public string Id { get; }
    // rest of implementation
}

…om command instead of result. This allows usages of derived instanses of EventStreamId from the returned Command result
@agehrke agehrke self-requested a review May 2, 2025 08:28
@agehrke agehrke merged commit 552ac33 into atc-net:main May 2, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants