コード例 #1
0
 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");
     }
 }
コード例 #2
0
 internal ChangeFeedCursor GetCursor()
 => new ChangeFeedCursor(
     urlHash: BlobChangeFeedExtensions.ComputeMD5(_containerClient.Uri.AbsoluteUri),
     endDateTime: _endTime,
     currentSegmentCursor: _currentSegment.GetCursor());