Exemple #1
0
 public void SyncAll()
 {
     Task.Factory
     .StartNew(() => _splitFetcher.FetchSplits().Wait())
     .ContinueWith((x) => _segmentFetcher.FetchAll().Wait())
     .ContinueWith((x) => _log.Debug("Spltis and Segments synchronized..."));
 }
Exemple #2
0
        public async void SyncAll()
        {
            await _splitFetcher.FetchSplits();

            await _segmentFetcher.FetchAll();

            _log.Debug("Spltis and Segments synchronized...");
        }
Exemple #3
0
        private bool SyncAll()
        {
            var splitsResult = _splitFetcher.FetchSplits(_defaultFetchOptions).Result;

            return(splitsResult.Success && _segmentFetcher.FetchAll());
        }