Skip to content

Commit aade41f

Browse files
authored
Merge pull request MicrosoftDocs#54187 from SnehaGunda/RIupdates
Updating code block
2 parents 0c495db + 6b37027 commit aade41f

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

articles/cosmos-db/change-feed.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -351,19 +351,13 @@ To implement the change feed processor library you have to do following:
351351
CollectionName = this.leaseCollectionName
352352
};
353353
DocumentFeedObserverFactory docObserverFactory = new DocumentFeedObserverFactory();
354-
ChangeFeedOptions feedOptions = new ChangeFeedOptions();
355-
356-
/* ie customize StartFromBeginning so change feed reads from beginning
357-
can customize MaxItemCount, PartitonKeyRangeId, RequestContinuation, SessionToken and StartFromBeginning
358-
*/
359-
360-
feedOptions.StartFromBeginning = true;
361-
354+
362355
ChangeFeedProcessorOptions feedProcessorOptions = new ChangeFeedProcessorOptions();
363356

364357
// ie. customizing lease renewal interval to 15 seconds
365358
// can customize LeaseRenewInterval, LeaseAcquireInterval, LeaseExpirationInterval, FeedPollDelay
366359
feedProcessorOptions.LeaseRenewInterval = TimeSpan.FromSeconds(15);
360+
feedProcessorOptions.StartFromBeginning = true;
367361

368362
this.builder
369363
.WithHostName(hostName)

0 commit comments

Comments
 (0)