private static void ValidateCursor( BlobContainerClient containerClient, ChangeFeedCursor cursor) { if (BlobChangeFeedExtensions.ComputeMD5(containerClient.Uri.AbsoluteUri) != cursor.UrlHash) { throw new ArgumentException("Cursor URL does not match container URL"); } }
internal ChangeFeedCursor GetCursor() => new ChangeFeedCursor( urlHash: BlobChangeFeedExtensions.ComputeMD5(_containerClient.Uri.AbsoluteUri), endDateTime: _endTime, currentSegmentCursor: _currentSegment.GetCursor());