Esempio n. 1
0
        private async Task ReadWatermarkAsync()
        {
            if (currentWatermark != null)
            {
                return;
            }

            currentWatermark = await watermarkProvider.ReadAsync();

            if (currentWatermark.ProviderWatermarks == null)
            {
                currentWatermark.ProviderWatermarks = new List <ProviderWatermark>();
            }

            while (currentWatermark.ProviderWatermarks.Count < sourceProviderHosts.Count)
            {
                currentWatermark.ProviderWatermarks.Add(new ProviderWatermark());
            }
        }
Esempio n. 2
0
 private async Task WriteWatermarkAsync(Watermark watermark)
 {
     await watermarkProvider.WriteAsync(watermark);
 }
Esempio n. 3
0
 private async Task UpdateProviderAsync(SourceProviderHost sourceProviderHost, int providerId, Watermark nextWatermark)
 {
     await sourceProviderHost.UpdateAsync(nextWatermark.ProviderWatermarks[providerId]);
 }
Esempio n. 4
0
 public Task WriteAsync(Watermark watermark)
 {
     return(Task.CompletedTask);
 }