Beispiel #1
0
        private async void SendAttachHandle(List <string> files)
        {
            if (_uploader != null)
            {
                try
                {
                    ResponseInfo res = await _uploader.UploadAsync(RemoteHost, files.ToArray());

                    UploadCompleted(res);
                }
                catch (Exception ex)
                {
                    messagerService.ShowError(ex, "Error", "OK", null);
                }
            }
        }
Beispiel #2
0
        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);
        }