예제 #1
0
        public async Task Run()
        {
            _urlSaver.UpdateStatusLine += ((s, e) =>
            {
                _statusReporter.Update(e.Delta);
                _logger.WriteRedText($"Current status {_statusReporter.CurrentStatus} % ");
            });

            if (await _urlSaver.TryGetGetUrlsFromStorageAsync())
            {
                await _urlSaver.GetDataFromUrlAsync(5);

                await _urlSaver.SaveContentToStorageAsync();

                ConsoleWithLocker.WriteLine("************** ALL DONE**************");
            }
        }
예제 #2
0
 public void Write(string logInformation)
 {
     ConsoleWithLocker.WriteLine(logInformation);
 }