I’d like to get information about an event after I’ve written to the the event store. Specifically I want to know the sequence number and the timestamp of the written event. It looks like AppendToStream doesn’t return anything, but one would think that it could return a ResolvedEvent. Is there any way of getting the sequence number of an event after writing?
Not sure which version you’re using, but AppendToStreamAsync now returns a WriteResult:
This should be able to give you what you need:
That’s it! Thanks. It appears this is not in version 2.0.2 of the client api, which is what the Nuget package is right now.
Include prerelease and it’s there.