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); } }
public List <Model.Internet> Get([FromQuery] InternetSearchRequest request) { return(_internet.Get(request)); }