Update API II
This commit is contained in:
parent
7d4b0383e9
commit
240628171f
@ -128,12 +128,14 @@ public class ProcessData : IProcessData
|
||||
|
||||
private static void Update(HttpClient httpClient, string basePage, string api, string query, HttpContent httpContent)
|
||||
{
|
||||
#if CORE
|
||||
Task<HttpResponseMessage> httpResponseMessageTask = httpClient.PatchAsync(string.Concat(basePage, api, query), httpContent);
|
||||
httpResponseMessageTask.Wait();
|
||||
if (!httpResponseMessageTask.Result.IsSuccessStatusCode)
|
||||
throw new Exception(httpResponseMessageTask.Result.StatusCode.ToString());
|
||||
Task<string> stringTask = httpResponseMessageTask.Result.Content.ReadAsStringAsync();
|
||||
stringTask.Wait();
|
||||
#endif
|
||||
}
|
||||
|
||||
private static void UpdateIds(HttpClient httpClient, string basePage, string api, string[] checkFiles)
|
||||
|
Loading…
x
Reference in New Issue
Block a user