コード例 #1
0
 public static Task <HttpResponseMessage> PutContentAsJsonAsync <T>(this HttpClient client, Uri requestUri, T requestContent)
 {
     return(client.PutContentAsJsonAsync(requestUri, requestContent, CancellationToken.None));
 }
コード例 #2
0
 public static Task <HttpResponseMessage> PutContentAsJsonAsync <T>(this HttpClient client, string requestUrl, T requestContent, CancellationToken cancellationToken)
 {
     return(client.PutContentAsJsonAsync(new Uri(requestUrl), requestContent, cancellationToken));
 }