Skip to content

Commit 75e028c

Browse files
committed
Add current version to client api
When a WrongExpectedVersion is now thrown, it will include what the current version is instead of only what you passed as the expected version
1 parent 53bb6a2 commit 75e028c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/EventStore.ClientAPI.NetCore/Messages/ClientMessage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ public partial class WriteEventsCompleted
192192
[ProtoMember(6, IsRequired = false, Name=@"commit_position", DataFormat = DataFormat.TwosComplement)]
193193
public readonly long? CommitPosition;
194194

195-
[ProtoMember(7, IsRequired = false, Name = @"current_version", DataFormat = DataFormat.TwosComplement)]
195+
196+
[ProtoMember(7, IsRequired = false, Name=@"current_version", DataFormat = DataFormat.TwosComplement)]
196197
public readonly int? CurrentVersion;
197-
198198
private WriteEventsCompleted() {}
199199

200200
public WriteEventsCompleted(OperationResult result, string message, int firstEventNumber, int lastEventNumber, long? preparePosition, long? commitPosition, int? currentVersion)

0 commit comments

Comments
 (0)