private void TestHttpClient(WebApiHelper webApiHelper, string testUri, int testCount, int failMs) { for (int i = 0; i < testCount; i++) { var i1 = i; Task.Run(async() => { var isOk = await webApiHelper.CheckTargetStatus(testUri, failMs); Console.WriteLine("test " + i1 + " => " + (isOk ? "OK" : "!!!")); }); } }