| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | |
|
| | 6 | | namespace Azure.Storage.Blobs.ChangeFeed |
| | 7 | | { |
| | 8 | | /// <summary> |
| | 9 | | /// BlobChangeFeedCursor. |
| | 10 | | /// </summary> |
| | 11 | | internal class ChangeFeedCursor |
| | 12 | | { |
| | 13 | | /// <summary> |
| | 14 | | /// CursorVersion. |
| | 15 | | /// </summary> |
| 424 | 16 | | public int CursorVersion { get; set; } |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// UrlHash. MD5 of the $changefeed container URL. |
| | 20 | | /// </summary> |
| 424 | 21 | | public string UrlHash { get; set; } |
| | 22 | |
|
| | 23 | | /// <summary> |
| | 24 | | /// EndDateTime. |
| | 25 | | /// </summary> |
| 424 | 26 | | public DateTimeOffset? EndTime { get; set; } |
| | 27 | |
|
| | 28 | | /// <summary> |
| | 29 | | /// The Segment Cursor for the current segment. |
| | 30 | | /// </summary> |
| 524 | 31 | | public SegmentCursor CurrentSegmentCursor { get; set; } |
| | 32 | |
|
| 156 | 33 | | internal ChangeFeedCursor( |
| 156 | 34 | | string urlHash, |
| 156 | 35 | | DateTimeOffset? endDateTime, |
| 156 | 36 | | SegmentCursor currentSegmentCursor) |
| | 37 | | { |
| 156 | 38 | | CursorVersion = 1; |
| 156 | 39 | | UrlHash = urlHash; |
| 156 | 40 | | EndTime = endDateTime; |
| 156 | 41 | | CurrentSegmentCursor = currentSegmentCursor; |
| 156 | 42 | | } |
| | 43 | |
|
| 128 | 44 | | public ChangeFeedCursor() { } |
| | 45 | | } |
| | 46 | | } |