Example #1
0
        private async Task RunOnce()
        {
            TestResult testResult = null;

            if (!string.IsNullOrEmpty(DownloadUrl) && IsDownloadUrlValid)
            {
                testResult = await internetService.Get(downloadUri);

                LastResult = testResult;

                TestResults.Add(testResult);
            }

            if (!string.IsNullOrEmpty(ResultsUrl) && IsResultsUrlValid)
            {
                var resultsPostResponse = await internetService.PostResult(resultsUri, testResult, hostName);
            }
        }
Example #2
0
 public List <Model.Internet> Get([FromQuery] InternetSearchRequest request)
 {
     return(_internet.Get(request));
 }