@@ -37,10 +37,10 @@ public Task<IWriteResult> AppendToStreamAsync(
37
37
38
38
var eventsData = _messageSerializer . Serialize ( messages , serializationContext ) ;
39
39
40
- return options . StreamRevision . HasValue
40
+ return options . ExpectedStreamRevision . HasValue
41
41
? AppendToStreamAsync (
42
42
streamName ,
43
- options . StreamRevision . Value ,
43
+ options . ExpectedStreamRevision . Value ,
44
44
eventsData ,
45
45
options . ConfigureOperationOptions ,
46
46
options . Deadline ,
@@ -49,7 +49,7 @@ public Task<IWriteResult> AppendToStreamAsync(
49
49
)
50
50
: AppendToStreamAsync (
51
51
streamName ,
52
- options . StreamState ?? StreamState . Any ,
52
+ options . ExpectedStreamState ?? StreamState . Any ,
53
53
eventsData ,
54
54
options . ConfigureOperationOptions ,
55
55
options . Deadline ,
@@ -562,14 +562,14 @@ public static Task<IWriteResult> AppendToStreamAsync(
562
562
// TODO: In the follow up PR merge StreamState and StreamRevision into a one thing
563
563
public class AppendToStreamOptions {
564
564
/// <summary>
565
- /// The expected <see cref="StreamState "/> of the stream to append to.
565
+ /// The expected <see cref="ExpectedStreamState "/> of the stream to append to.
566
566
/// </summary>
567
- public StreamState ? StreamState { get ; set ; }
567
+ public StreamState ? ExpectedStreamState { get ; set ; }
568
568
569
569
/// <summary>
570
- /// The expected <see cref="StreamRevision "/> of the stream to append to.
570
+ /// The expected <see cref="ExpectedStreamRevision "/> of the stream to append to.
571
571
/// </summary>
572
- public StreamRevision ? StreamRevision { get ; set ; }
572
+ public StreamRevision ? ExpectedStreamRevision { get ; set ; }
573
573
574
574
/// <summary>
575
575
/// An <see cref="Action{KurrentClientOperationOptions}"/> to configure the operation's options.
0 commit comments