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);
            }
        }
Beispiel #2
0
 public virtual void InsertMany(IEnumerable <Proxy> proxies)
 {
     _proxyRepo.InsertMany(proxies);
 }