public async Task RunAsync() { var logger = _loggerFactory.CreateLogger <TmetricLoadService>(); var logs = await _loadService.LoadAsync().ConfigureAwait(false); var aggregatedTimeEntries = logs.ToList(); logger.LogInformation($"Aggregated entries found: {aggregatedTimeEntries.Count}"); var issueKeys = aggregatedTimeEntries.Select(e => e.IssueKey).Distinct(); var pwd = _security.Decrypt("JiraPassword"); await _uploader.UploadAsync(pwd, issueKeys, aggregatedTimeEntries, CancellationToken.None).ConfigureAwait(false); }