public async Task<string> Post(HttpFormUrlEncodedContent postData, Action<String> TextChange, Action Wait, string url = null,int flag=1)
{
Task<string> temp = HttpRequestAsync(async () =>
{
string resourceAddress;
if (url == null)
resourceAddress = server;
else
resourceAddress = url;
string responseBody;
HttpResponseMessage response = await httpClient.PostAsync(
new Uri(resourceAddress),
postData).
AsTask(cts.Token);
response.EnsureSuccessStatusCode();
responseBody = await response.Content.ReadAsStringAsync().AsTask(cts.Token);
return responseBody;
}, TextChange, Wait,flag);
return await temp;
}
public async Task<string> Get(Action<String> Change, Action Wait, string url = null,int flag=1)