protected override SegmentChange FetchFromBackend(string name, long since) { var fetchResult = apiClient.FetchSegmentChanges(name, since); var segmentChange = JsonConvert.DeserializeObject <SegmentChange>(fetchResult); return(segmentChange); }
protected override async Task <SegmentChange> FetchFromBackend(string name, long since, CancellationToken token) { var fetchResult = await apiClient.FetchSegmentChanges(name, since, token); var segmentChange = JsonConvert.DeserializeObject <SegmentChange>(fetchResult); return(segmentChange); }
protected override async Task <SegmentChange> FetchFromBackend(string name, long since, FetchOptions fetchOptions) { var fetchResult = await _apiClient.FetchSegmentChanges(name, since, fetchOptions); return(JsonConvert.DeserializeObject <SegmentChange>(fetchResult)); }