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

StreamRevision Updates #53

Merged
merged 3 commits into from
Jul 20, 2020
Merged

Conversation

thefringeninja
Copy link
Contributor

Changed: Convert from StreamPosition to StreamRevision; StreamRevision on IWriteResult

@thefringeninja thefringeninja self-assigned this Jul 3, 2020
@@ -23,6 +23,7 @@ namespace EventStore.Client {
_value = value;
}

public StreamRevision Next() => this + 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to guard ulong.MaxValue + 1 ? You could do something like this:

if (_value == ulong.MaxValue) then throw new InvalidOperationException("StreamRevision.None does not have a next value.");
return this + 1;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pgermishuys
pgermishuys previously approved these changes Jul 20, 2020
@pgermishuys
Copy link
Contributor

This requires rebase after the recent merge @thefringeninja but looks good otherwise.

@pgermishuys pgermishuys merged commit da3b746 into EventStore:master Jul 20, 2020
@thefringeninja thefringeninja deleted the forward-pass branch July 20, 2020 18:46
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.

4 participants