Exemplo n.º 1
0
 public override FeedIterator GetChangeFeedStreamIterator(
     PartitionKey partitionKey,
     ChangeFeedRequestOptions changeFeedRequestOptions = null)
 {
     return(ChangeFeedIteratorCore.Create(
                container: this,
                feedRangeInternal: new FeedRangePartitionKey(partitionKey),
                continuation: null,
                changeFeedRequestOptions: changeFeedRequestOptions));
 }
Exemplo n.º 2
0
 public override FeedIterator GetChangeFeedStreamIterator(
     string continuationToken = null,
     ChangeFeedRequestOptions changeFeedRequestOptions = null)
 {
     return(ChangeFeedIteratorCore.Create(
                container: this,
                feedRangeInternal: null,
                continuation: continuationToken,
                changeFeedRequestOptions: changeFeedRequestOptions));
 }
Exemplo n.º 3
0
        public override FeedIterator <T> GetChangeFeedIterator <T>(
            PartitionKey partitionKey,
            ChangeFeedRequestOptions changeFeedRequestOptions = null)
        {
            ChangeFeedIteratorCore changeFeedIteratorCore = ChangeFeedIteratorCore.Create(
                container: this,
                feedRangeInternal: new FeedRangePartitionKey(partitionKey),
                continuation: null,
                changeFeedRequestOptions: changeFeedRequestOptions);

            return(new FeedIteratorCore <T>(changeFeedIteratorCore, responseCreator: this.ClientContext.ResponseFactory.CreateChangeFeedUserTypeResponse <T>));
        }
Exemplo n.º 4
0
        public override FeedIterator GetChangeFeedStreamIterator(
            FeedRange feedRange,
            ChangeFeedRequestOptions changeFeedRequestOptions = null)
        {
            FeedRangeInternal feedRangeInternal = feedRange as FeedRangeInternal;

            return(ChangeFeedIteratorCore.Create(
                       container: this,
                       feedRangeInternal: feedRangeInternal,
                       continuation: null,
                       changeFeedRequestOptions: changeFeedRequestOptions));
        }
Exemplo n.º 5
0
        FeedIterator <T> GetChangeFeedIterator <T>(
            string continuationToken = null,
            ChangeFeedRequestOptions changeFeedRequestOptions = null)
        {
            ChangeFeedIteratorCore changeFeedIteratorCore = ChangeFeedIteratorCore.Create(
                container: this,
                feedRangeInternal: null,
                continuation: continuationToken,
                changeFeedRequestOptions: changeFeedRequestOptions);

            return(new FeedIteratorCore <T>(changeFeedIteratorCore, responseCreator: this.ClientContext.ResponseFactory.CreateChangeFeedUserTypeResponse <T>));
        }
Exemplo n.º 6
0
        public override FeedIterator <T> GetChangeFeedIterator <T>(
            FeedRange feedRange,
            ChangeFeedRequestOptions changeFeedRequestOptions = null)
        {
            FeedRangeInternal      feedRangeInternal      = feedRange as FeedRangeInternal;
            ChangeFeedIteratorCore changeFeedIteratorCore = ChangeFeedIteratorCore.Create(
                container: this,
                feedRangeInternal: feedRangeInternal,
                continuation: null,
                changeFeedRequestOptions: changeFeedRequestOptions);

            return(new FeedIteratorCore <T>(changeFeedIteratorCore, responseCreator: this.ClientContext.ResponseFactory.CreateChangeFeedUserTypeResponse <T>));
        }