internal Task <IAirHttpResponse <T> > QueryUrl <T>(string url, string method, Lazy <string> body, CancellationToken cancellationToken = default(CancellationToken)) { return(QueryUrl(url, method, body, responseContent => AirHttpResponse <T> .CreateSuccessfulResponseWithValue(responseContent.Item1, _contentProcessor.DeserializeObject <T>(responseContent.Item2)), e => AirHttpResponse <T> .CreateFaultedResponseWithValue(e), cancellationToken)); }
internal Task <IAirHttpResponse> QueryUrl(string url, string method, Lazy <string> body, CancellationToken cancellationToken = default(CancellationToken)) { return(QueryUrl(url, method, body, responseContent => AirHttpResponse.CreateSuccessfulResponse(responseContent.Item1), e => AirHttpResponse.CreateFaultedResponse(e), cancellationToken)); }