Beispiel #1
0
 private string BuildSearchQuery(int VesselId)
 {
     if (_progress.GetReturnedResultsQuantity() < _progress.GetTotalResultsQuantity() / 2)
     {
         return("SELECT TOP 1 MMSI,SpeedMax,DraughtMax FROM dbo.Vessels WHERE VesselId = " + VesselId + " ORDER BY IMO DESC;");
     }
     else
     {
         return("SELECT TOP 1 MMSI,SpeedMax,DraughtMax FROM dbo.Vessels WHERE VesselId = " + VesselId + ";");
     }
 }
        public async Task UpdateListOfVesselsAsync(List <VesselAisUpdateModel> updateList)
        {
            _counter = 0;

            while (_counter < _progress.GetTotalResultsQuantity())
            {
                await ProcessNextStepAsync(updateList);
            }

            StatusModel progress = _progress.GetProgressStatus();

            _dataService.SaveUpdateLogs(progress);
        }