Beispiel #1
0
 public async Task <HttpResponse <TResponse> > PostAsync <TRequest, TResponse>(string url, TRequest entity)
 {
     return(await PostAsync(url, entity, HttpConverterUtils.GetRequestJsonConverter <TRequest>(), HttpConverterUtils.GetResponseJsonConverter <TResponse>()));
 }
Beispiel #2
0
 public async Task <HttpResponse <TResponse> > PutAsync <TRequest, TResponse>(string url, TRequest entity, Func <HttpResponseMessage, Task <TResponse> > responseConverter)
 {
     return(await PutAsync(url, entity, HttpConverterUtils.GetRequestJsonConverter <TRequest>(), responseConverter));
 }