Skip to content

Commit 1cad16d

Browse files
authored
Merge pull request #33105 from AndrewCook/patch-3
Adding optional Prerequisite for httpclient as shown in code sample.
2 parents 7337a06 + 291d699 commit 1cad16d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/azure-functions/functions-dotnet-dependency-injection.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Before you can use dependency injection, you must install the following NuGet pa
2727

2828
- [Microsoft.NET.Sdk.Functions package](https://www.nuget.org/packages/Microsoft.NET.Sdk.Functions/) version 1.0.28 or later
2929

30+
- Optional: [Microsoft.Extensions.Http](https://www.nuget.org/packages/Microsoft.Extensions.Http/) Only required for registering HttpClient at startup
31+
3032
## Register services
3133

3234
To register services, you can create a method to configure and add components to an `IFunctionsHostBuilder` instance. The Azure Functions host creates an instance of `IFunctionsHostBuilder` and passes it directly into your method.

0 commit comments

Comments
 (0)