public async Task<string> Get(Action<String> Change, 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.GetAsync(new Uri(resourceAddress)).AsTask(cts.Token);
responseBody = await response.Content.ReadAsStringAsync().AsTask(cts.Token);
return responseBody;
}, Change, Wait,flag);
return await temp;
}
}