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()); } }
private async Task WriteWatermarkAsync(Watermark watermark) { await watermarkProvider.WriteAsync(watermark); }
private async Task UpdateProviderAsync(SourceProviderHost sourceProviderHost, int providerId, Watermark nextWatermark) { await sourceProviderHost.UpdateAsync(nextWatermark.ProviderWatermarks[providerId]); }
public Task WriteAsync(Watermark watermark) { return(Task.CompletedTask); }