Ejemplo n.º 1
0
        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)));
        }
Ejemplo n.º 2
0
        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)));
        }