forked from kurrent-io/KurrentDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWriteResult.cs
29 lines (27 loc) · 936 Bytes
/
WriteResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace EventStore.ClientAPI
{
/// <summary>
/// Result type returned after writing to a stream.
/// </summary>
public struct WriteResult
{
/// <summary>
/// The next expected version for the stream.
/// </summary>
public readonly long NextExpectedVersion;
/// <summary>
/// The <see cref="LogPosition"/> of the write.
/// </summary>
public readonly Position LogPosition;
/// <summary>
/// Constructs a new <see cref="WriteResult"/>.
/// </summary>
/// <param name="nextExpectedVersion">The next expected version for the stream.</param>
/// <param name="logPosition">The position of the write in the log</param>
public WriteResult(long nextExpectedVersion, Position logPosition)
{
LogPosition = logPosition;
NextExpectedVersion = nextExpectedVersion;
}
}
}