Skip to content

Commit 167fec6

Browse files
authored
Merge pull request #115450 from ealsur/users/ealsur/cfpullcodefix
Cosmos DB - Change Feed Pull examples fix
2 parents 8a69015 + ac7c874 commit 167fec6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/cosmos-db/change-feed-pull-model.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ FeedIterator iteratorWithStreams = container.GetChangeFeedStreamIterator();
3838
Using a `FeedIterator`, you can easily process an entire container's change feed at your own pace. Here's an example:
3939

4040
```csharp
41-
FeedIterator<User> iteratorForTheEntireContainer= container.GetChangeFeedIterator(new ChangeFeedRequestOptions{StartTime = DateTime.MinValue});
41+
FeedIterator<User> iteratorForTheEntireContainer= container.GetChangeFeedIterator<User>(new ChangeFeedRequestOptions{StartTime = DateTime.MinValue});
4242

4343
while (iteratorForTheEntireContainer.HasMoreResults)
4444
{
@@ -56,7 +56,7 @@ while (iteratorForTheEntireContainer.HasMoreResults)
5656
In some cases, you may only want to process a specific partition key's changes. You can obtain a `FeedIterator` for a specific partition key and process the changes the same way that you can for an entire container:
5757

5858
```csharp
59-
FeedIterator<User> iteratorForThePartitionKey = container.GetChangeFeedIterator(new PartitionKey("myPartitionKeyValueToRead"), new ChangeFeedRequestOptions{StartTime = DateTime.MinValue});
59+
FeedIterator<User> iteratorForThePartitionKey = container.GetChangeFeedIterator<User>(new PartitionKey("myPartitionKeyValueToRead"), new ChangeFeedRequestOptions{StartTime = DateTime.MinValue});
6060

6161
while (iteratorForThePartitionKey.HasMoreResults)
6262
{
@@ -93,7 +93,7 @@ Here's a sample that shows how to read from the beginning of the container's cha
9393
Machine 1:
9494

9595
```csharp
96-
FeedIterator<User> iteratorA = container.GetChangeFeedIterator<Person>(ranges[0], new ChangeFeedRequestOptions{StartTime = DateTime.MinValue});
96+
FeedIterator<User> iteratorA = container.GetChangeFeedIterator<User>(ranges[0], new ChangeFeedRequestOptions{StartTime = DateTime.MinValue});
9797
while (iteratorA.HasMoreResults)
9898
{
9999
FeedResponse<User> users = await iteratorA.ReadNextAsync();

0 commit comments

Comments
 (0)