private Task <HttpResponseMessage> PostAsyncRequest(HttpRequestMessage request, HttpContent requestHttpContent, Route route, Models.Routing routing) { var client = RoutingHttpClientFactory.Create(request, route.Uri); var contentHeaders = request.Content?.Headers; return(client.PostAsync(route.Uri, requestHttpContent).ContinueWith(ContinuationFunction(client, contentHeaders, route, routing))); }
private Task <HttpResponseMessage> GetAsyncRequest(HttpRequestMessage request, Route route, Models.Routing routing) { var client = RoutingHttpClientFactory.Create(request, route.Uri); return(client.GetAsync(route.Uri).ContinueWith(ContinuationFunction(client, null, route, routing))); }