Beispiel #1
0
 public static async Task <TResult> DeleteAsync <TResult>(this System.Net.Http.HttpClient client, string uri,
                                                          bool continueOnCapturedContext = false)
 => await client.CallAsync <TResult>(_ => _.DeleteAsync(uri), uri, continueOnCapturedContext);
Beispiel #2
0
 public static async Task <TResult> SendAsync <TResult>(this System.Net.Http.HttpClient client, HttpRequestMessage request,
                                                        bool continueOnCapturedContext = false)
 => await client.CallAsync <TResult>(_ => _.SendAsync(request), request.RequestUri.ToString(),
                                     continueOnCapturedContext);
Beispiel #3
0
 public static async Task <string> PutAsync(this System.Net.Http.HttpClient client, string uri, HttpContent content = null,
                                            bool continueOnCapturedContext = false)
 => await client.CallAsync(_ => _.PutAsync(uri, content), uri, continueOnCapturedContext);