From 9babf7b228f97b50c363fdc59244fa0ba328f044 Mon Sep 17 00:00:00 2001 From: Scott Addie <10702007+scottaddie@users.noreply.github.com> Date: Tue, 24 Jul 2018 08:42:51 -0500 Subject: [PATCH] Add Prereqs section to IHttpClientFactory doc (#7780) Fixes https://github.com/aspnet/Docs/issues/7762 --- aspnetcore/fundamentals/http-requests.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aspnetcore/fundamentals/http-requests.md b/aspnetcore/fundamentals/http-requests.md index 4d7808873e..8e38f0506f 100644 --- a/aspnetcore/fundamentals/http-requests.md +++ b/aspnetcore/fundamentals/http-requests.md @@ -5,7 +5,7 @@ description: Learn about using the IHttpClientFactory interface to manage logica monikerRange: '>= aspnetcore-2.1' ms.author: scaddie ms.custom: mvc -ms.date: 06/22/2018 +ms.date: 07/23/2018 uid: fundamentals/http-requests --- # Initiate HTTP requests @@ -19,6 +19,10 @@ An [IHttpClientFactory](/dotnet/api/system.net.http.ihttpclientfactory) can be r * Manages the pooling and lifetime of underlying `HttpClientMessageHandler` instances to avoid common DNS problems that occur when manually managing `HttpClient` lifetimes. * Adds a configurable logging experience (via `ILogger`) for all requests sent through clients created by the factory. +## Prerequisites + +Projects targeting .NET Framework require installation of the [Microsoft.Extensions.Http](https://www.nuget.org/packages/Microsoft.Extensions.Http/) NuGet package. Projects that target .NET Core and reference the [Microsoft.AspNetCore.App metapackage](xref:fundamentals/metapackage-app) already include the `Microsoft.Extensions.Http` package. + ## Consumption patterns There are several ways `IHttpClientFactory` can be used in an app: