public async Task <T> PutAsync <T>(Uri requestUri, object item = null, string contentType = "application/json") { var request = BuildRequest(requestUri, item, contentType); var response = await _http.PutAsync(request); ValidateResponse(response); return(DeserializeContent <T>(response)); }
public async Task <T> PutAsync <T>(Uri requestUri, object item, string contentType, string resource, string operation) { var request = BuildRequest(requestUri, item, contentType); var response = await _http.PutAsync(request, this.ClientName, resource, operation).ConfigureAwait(false); ValidateResponse(response); return(DeserializeContent <T>(response)); }