Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var method = new HttpMethod("PATCH");
- var patch_request = new HttpRequestMessage(method, each_well_url)
- {
- Content = httpContent
- };
- HttpResponseMessage patch_response = new HttpResponseMessage();
- // In case you want to set a timeout
- //CancellationToken cancellationToken = new CancellationTokenSource(60).Token;
- try
- {
- patch_response = await myClient.SendAsync(patch_request);
- // If you want to use the timeout you set
- //response = await client.SendRequestAsync(request).AsTask(cancellationToken);
- }
- catch
- {
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement