private void SendTestSessionI(string clientSdk) { DebugLog("SendTestSessionI"); var httpResponse = UtilsNetworking .SendPostI("/init_session", clientSdk, LocalIp, TestNames.ToString()).Result; ReadResponseI(httpResponse); }
private void EndTestReadNext() { // send end test request var httpResponse = UtilsNetworking.SendPostI(CurrentBasePath + "/end_test_read_next", LocalIp).Result; // and process the next in the response ReadResponseI(httpResponse); }
private void SendInfoToServerI(string basePath) { DebugLog("sendInfoToServerI called"); var httpResponse = UtilsNetworking .SendPostI(basePath + "/test_info", null, LocalIp, InfoToServer).Result; InfoToServer = null; ReadResponseI(httpResponse); }
private void SendControlRequest(string controlPath) { Task.Run(() => { var ticksBefore = DateTime.Now.Ticks; DebugLog("time (ticks) before wait: {0}", ticksBefore); var response = UtilsNetworking .SendPostI(_testLibrary.CurrentBasePath + controlPath, _testLibrary.LocalIp).Result; var ticksAfter = DateTime.Now.Ticks; var elapsedMillisenconds = TimeSpan.FromTicks(ticksAfter - ticksBefore).TotalMilliseconds; DebugLog("time (ticks) after wait: {0}", ticksAfter); DebugLog("time elapsed waiting in milliseconds: {0}", elapsedMillisenconds); ReadControlHeaders(response); }); }