@@ -19,50 +19,31 @@ namespace Microsoft.Azure.Cosmos
19
19
#endif
20
20
class ChangeFeedMetadata
21
21
{
22
- /// <summary>
23
- /// New instance of meta data for <see cref="ChangeFeedItem{T}"/> created.
24
- /// </summary>
25
- /// <param name="conflictResolutionTimestamp"></param>
26
- /// <param name="lsn"></param>
27
- /// <param name="operationType"></param>
28
- /// <param name="previousLsn"></param>
29
- public ChangeFeedMetadata (
30
- DateTime conflictResolutionTimestamp ,
31
- long lsn ,
32
- ChangeFeedOperationType operationType ,
33
- long previousLsn )
34
- {
35
- this . ConflictResolutionTimestamp = conflictResolutionTimestamp ;
36
- this . Lsn = lsn ;
37
- this . OperationType = operationType ;
38
- this . PreviousLsn = previousLsn ;
39
- }
40
-
41
22
/// <summary>
42
23
/// The conflict resolution timestamp.
43
24
/// </summary>
44
25
[ JsonProperty ( PropertyName = "crts" , NullValueHandling = NullValueHandling . Ignore ) ]
45
26
[ JsonConverter ( typeof ( UnixDateTimeConverter ) ) ]
46
- public DateTime ConflictResolutionTimestamp { get ; }
27
+ public DateTime ConflictResolutionTimestamp { get ; internal set ; }
47
28
48
29
/// <summary>
49
30
/// The current logical sequence number.
50
31
/// </summary>
51
32
[ JsonProperty ( PropertyName = "lsn" , NullValueHandling = NullValueHandling . Ignore ) ]
52
- public long Lsn { get ; }
33
+ public long Lsn { get ; internal set ; }
53
34
54
35
/// <summary>
55
36
/// The change feed operation type.
56
37
/// </summary>
57
38
[ JsonProperty ( PropertyName = "operationType" ) ]
58
39
[ JsonConverter ( typeof ( StringEnumConverter ) ) ]
59
- public ChangeFeedOperationType OperationType { get ; }
40
+ public ChangeFeedOperationType OperationType { get ; internal set ; }
60
41
61
42
/// <summary>
62
43
/// The previous logical sequence number.
63
44
/// </summary>
64
45
[ JsonProperty ( PropertyName = "previousImageLSN" , NullValueHandling = NullValueHandling . Ignore ) ]
65
- public long PreviousLsn { get ; }
46
+ public long PreviousLsn { get ; internal set ; }
66
47
67
48
/// <summary>
68
49
/// Used to distinquish explicit deletes (e.g. via DeleteItem) from deletes caused by TTL expiration (a collection may define time-to-live policy for documents).
0 commit comments