public async Task ExecuteAsync() { _logger.LogInformation("{service} running at: {time}", nameof(EntryPointService), DateTimeOffset.Now); try { // capture the image _capture.CaptueImage(_settings); //check the directory for changes //If the directory has a change //Take the image //Upload to the server // check 1 URL in the message //var statusHistory = await _urlStatusChecker.CheckUrlAsync(message, ""); // record HTTP status / response time // _logger.LogInformation("Record HTTP status ,response time {time}", statusHistory); } catch (Exception ex) { _logger.LogError(ex, $"{nameof(EntryPointService)}.{nameof(ExecuteAsync)} threw an exception."); } }