Hi Team,
I want to give a same request call till i get status from "Running" to "Success".
I have tried below line code to give call again but getting error like "The request message was already sent. Cannot send the same request message multiple times"
string Job_Status = obj_cs_ApiCall_RiskJobStatus.responseStatus;//obj_cs_ApiCall_RiskJobStatus[0].responseStatus;
if (Job_Status == "SUCCESS")
{
string Step_Job_Status = "";
Step_Job_Status = obj_cs_ApiCall_RiskJobStatus.data.status;
while (true)
{
if (Step_Job_Status == "SUCCESS")
{
ApiCall_CSVData();
}
else
{
Thread.Sleep(50000);
response = await client.SendAsync(request);
}
}
}
have referred below link but unable to understand. Please help me with sample code.
c# - The request message was already sent. Cannot send the same request message multiple times - Stack Overflow