How can I make a request via HttpClient every 1 second?
The server that I send the requests drills the request if it is one after the other with a response: "RequestBlocked"
What I wanted was this: I had 2 requests made, however he would make the first request and return his value, 1 second later he would make the second requisition and so on, can you do something like that?
Code
using (var client = new HttpClient())
{
var result = await client.GetAsync("http://localhost/api/request.php");
return result.StatusCode.ToString();
}