I have a ticket kiosk written in C# using TriPOS. When I send a sales request my UI hangs until it returns or times out.
You can add a timeout to your Wait like this:
// 10 seconds
But I have the exact same code and have never had a problem:
HttpResponseMessage response = client.SendRequest(triposurl, postBody, "application/json"); Task<string> readAsync = response.Content.ReadAsStringAsync();
readAsync.Wait(); responseResult = readAsync.Result;
Retrieving data ...