Skip to content

Commit 1cf88de

Browse files
fixing de/serialziation issue
1 parent 4ea8aea commit 1cf88de

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

Microsoft.Azure.Cosmos/src/Resource/FullFidelity/ChangeFeedMetadata.cs

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,50 +19,31 @@ namespace Microsoft.Azure.Cosmos
1919
#endif
2020
class ChangeFeedMetadata
2121
{
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-
4122
/// <summary>
4223
/// The conflict resolution timestamp.
4324
/// </summary>
4425
[JsonProperty(PropertyName = "crts", NullValueHandling = NullValueHandling.Ignore)]
4526
[JsonConverter(typeof(UnixDateTimeConverter))]
46-
public DateTime ConflictResolutionTimestamp { get; }
27+
public DateTime ConflictResolutionTimestamp { get; internal set; }
4728

4829
/// <summary>
4930
/// The current logical sequence number.
5031
/// </summary>
5132
[JsonProperty(PropertyName = "lsn", NullValueHandling = NullValueHandling.Ignore)]
52-
public long Lsn { get; }
33+
public long Lsn { get; internal set; }
5334

5435
/// <summary>
5536
/// The change feed operation type.
5637
/// </summary>
5738
[JsonProperty(PropertyName = "operationType")]
5839
[JsonConverter(typeof(StringEnumConverter))]
59-
public ChangeFeedOperationType OperationType { get; }
40+
public ChangeFeedOperationType OperationType { get; internal set; }
6041

6142
/// <summary>
6243
/// The previous logical sequence number.
6344
/// </summary>
6445
[JsonProperty(PropertyName = "previousImageLSN", NullValueHandling = NullValueHandling.Ignore)]
65-
public long PreviousLsn { get; }
46+
public long PreviousLsn { get; internal set; }
6647

6748
/// <summary>
6849
/// 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

Comments
 (0)