public async Task Execute()
        {
            byte[] latestRevision       = _proxyRepo.GetLatestRevision();
            IEnumerable <Proxy> proxies = (latestRevision == null) ?
                                          await _dataStore.SelectProxies() :
                                          await _dataStore.SelectProxies(latestRevision);

            Log.Information("{0} Proxy(s) Updated or Added since last sync.", proxies.Count());
            if (proxies.Any())
            {
                _proxyRepo.InsertMany(proxies);
            }
        }
Esempio n. 2
0
 public virtual byte[] GetLatestRevision()
 {
     return(_proxyRepo.GetLatestRevision());
 }