< Summary

Class:Azure.Storage.Blobs.ChangeFeed.ChangeFeedCursor
Assembly:Azure.Storage.Blobs.ChangeFeed
File(s):C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs.ChangeFeed\src\Models\ChangeFeedCursor.cs
Covered lines:14
Uncovered lines:0
Coverable lines:14
Total lines:46
Line coverage:100% (14 of 14)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
get_CursorVersion()-100%100%
get_UrlHash()-100%100%
get_EndTime()-100%100%
get_CurrentSegmentCursor()-100%100%
.ctor(...)-100%100%
.ctor()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\storage\Azure.Storage.Blobs.ChangeFeed\src\Models\ChangeFeedCursor.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Storage.Blobs.ChangeFeed
 7{
 8    /// <summary>
 9    /// BlobChangeFeedCursor.
 10    /// </summary>
 11    internal class ChangeFeedCursor
 12    {
 13        /// <summary>
 14        /// CursorVersion.
 15        /// </summary>
 42416        public int CursorVersion { get; set; }
 17
 18        /// <summary>
 19        /// UrlHash. MD5 of the $changefeed container URL.
 20        /// </summary>
 42421        public string UrlHash { get; set; }
 22
 23        /// <summary>
 24        /// EndDateTime.
 25        /// </summary>
 42426        public DateTimeOffset? EndTime { get; set; }
 27
 28        /// <summary>
 29        /// The Segment Cursor for the current segment.
 30        /// </summary>
 52431        public SegmentCursor CurrentSegmentCursor { get; set; }
 32
 15633        internal ChangeFeedCursor(
 15634            string urlHash,
 15635            DateTimeOffset? endDateTime,
 15636            SegmentCursor currentSegmentCursor)
 37        {
 15638            CursorVersion = 1;
 15639            UrlHash = urlHash;
 15640            EndTime = endDateTime;
 15641            CurrentSegmentCursor = currentSegmentCursor;
 15642        }
 43
 12844        public ChangeFeedCursor() { }
 45    }
 46}