private async Task InitializeAsync() { this.documentServiceLeaseStoreManager = await ChangeFeedProcessorCore <dynamic> .InitializeLeaseStoreManagerAsync(this.documentServiceLeaseStoreManager, this.leaseContainer, this.leaseContainerPrefix, ChangeFeedEstimatorCore.EstimatorDefaultHostName).ConfigureAwait(false); this.feedEstimator = this.BuildFeedEstimator(); this.initialized = true; }
private async Task InitializeAsync() { string monitoredContainerRid = await this.monitoredContainer.GetMonitoredContainerRidAsync(this.monitoredContainerRid); this.monitoredContainerRid = this.monitoredContainer.GetLeasePrefix(this.changeFeedLeaseOptions, monitoredContainerRid); this.documentServiceLeaseStoreManager = await ChangeFeedProcessorCore <dynamic> .InitializeLeaseStoreManagerAsync(this.documentServiceLeaseStoreManager, this.leaseContainer, this.monitoredContainerRid, ChangeFeedEstimatorCore.EstimatorDefaultHostName).ConfigureAwait(false); this.feedEstimator = this.BuildFeedEstimator(); this.initialized = true; }