Jérémie Chassaing
Jérémie Chassaing
@sergey-tihon @dsyme , I invited you to review since you can be interested to use it for other projects
There is of course more work to do on this PR (tests, documentation, I'm not even sure it's correctly using the GRPC Api), but the idea is to start a...
(seems the builds failled for another reason..)
About the argument order, for now I choose the following: client.FoldAsync(deserialize, aggregator, streamname, revision, seed); the reason is that deserialize and aggregator are the most stable arguments. after that, the...
Last thing I need to be validated: The function returns the Revision of the last Event read in the stream, or None if the stream is not found. This is...
Something else... Let's say, I used Fold to compute current state, and get the last Event revision in the result (FoldResult). From there, after some time I want to make...
Now with better documentation, and unit tests.
And this time, everything is green 🎉
To be consistent, the FoldResult.Revision would ideally always be equal to the last event StreamPosition. This works as expected for empty stream and when there are returned events but is...
This is mainly due to the way expectedVersion is understood by AppendToStream. in AppendToStream, the expectedVersion is the position of the current last event in the stream. The return value...