Beispiel #1
0
        private void UpdateTestAgentLastAvailable(int testAgentRunId)
        {
            try
            {
                var testAgentRunAvailability = new TestAgentRunAvailabilityDto
                {
                    TestAgentRunId = testAgentRunId,
                    LastAvailable  = _dateTimeProvider.GetCurrentTime(),
                };

                _testAgentRunAvailabilityServiceClient.CreateAsync(testAgentRunAvailability).Wait();
            }
            catch (Exception e)
            {
                // DEBUG:
                _consoleProvider.WriteLine($"THERE WAS AN EXCEPTION DURING UPDATING LAST AVAILABLE {e}");
            }
        }
Beispiel #2
0
        private void UpdateTestAgentLastAvailable(int testAgentRunId)
        {
            try
            {
                var testAgentRunAvailability = new TestAgentRunAvailabilityDto
                {
                    TestAgentRunId = testAgentRunId,
                    LastAvailable  = _dateTimeProvider.GetCurrentTime(),
                };

                _testAgentRunAvailabilityServiceClient.CreateAsync(testAgentRunAvailability).Wait();
                ////_testRunLogService.CreateTestRunLogAsync($"Update Test Agent Run on machine {_environmentService.MachineName} {_dateTimeProvider.GetCurrentTime()}", testAgentRun.TestRunId).Wait();
                // DEBUG:
                ////_consoleProvider.WriteLine();
                _consoleProvider.WriteLine($"UPDATE Test Agent Run on machine {_environmentService.MachineName} {_dateTimeProvider.GetCurrentTime()}");
            }
            catch (Exception e)
            {
                // DEBUG:
                _consoleProvider.WriteLine($"THERE WAS AN EXCEPTION DURING UPDATING LAST AVAILABLE {e}");
            }
        }