Please see the bellow my code
HttpResponseMessage messge = client.GetAsync("ladders/get/"+ID+").Result;
if (messge.IsSuccessStatusCode)
{
string result = messge.Content.ReadAsStringAsync().Result;
}
I need this code execute until "result" variable is not null or max 30 minutes. Every minute will be execute bellow code until (result !=null) within 30 minutes.
HttpResponseMessage messge = client.GetAsync("ladders/get/"+ID+").Result;
Let see, If don't get "result" value within 30 minutes then after 30 min function will be automatically stop & notify to user that value not found. Meanwhile user can access other page.
Please suggest me how can solve this issue .....