From caae588b253166ca58d76cf5c9c5a51c4f1d52f7 Mon Sep 17 00:00:00 2001 From: Sascha-Oliver Prolic Date: Sun, 8 Jul 2018 22:37:35 +0800 Subject: [PATCH] Fix ExpectedVersion EmptyStream is 0, add missing Invalid --- src/EventStore.ClientAPI.NetCore/ExpectedVersion.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/EventStore.ClientAPI.NetCore/ExpectedVersion.cs b/src/EventStore.ClientAPI.NetCore/ExpectedVersion.cs index 089b35c..42b6910 100644 --- a/src/EventStore.ClientAPI.NetCore/ExpectedVersion.cs +++ b/src/EventStore.ClientAPI.NetCore/ExpectedVersion.cs @@ -33,11 +33,14 @@ public static class ExpectedVersion /// /// The stream should exist and should be empty. If it does not exist or is not empty treat that as a concurrency problem. /// - public const long EmptyStream = -1; - + public const long EmptyStream = 0; + /// + /// The stream is invalid + /// + public const long Invalid = -3; /// /// The stream should exist. If it or a metadata stream does not exist treat that as a concurrency problem. /// public const long StreamExists = -4; } -} \ No newline at end of file +}