Skip to content

Commit d6a8711

Browse files
authored
Merge pull request #87497 from DixitArora-MSFT/patch-20
Include Cosmos Client reference
2 parents aad9664 + 6d4512b commit d6a8711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ namespace MyNamespace
6666

6767
## Use injected dependencies
6868

69-
ASP.NET Core uses constructor injection to make your dependencies available to your function. The following sample demonstrates how the `IMyService` and `HttpClient` dependencies are injected into an HTTP-triggered function.
69+
ASP.NET Core uses constructor injection to make your dependencies available to your function. The following sample demonstrates how the `IMyService` and `HttpClient` dependencies are injected into an HTTP-triggered function.
7070

7171
```csharp
7272
using System;
@@ -107,7 +107,7 @@ namespace MyNamespace
107107
}
108108
```
109109

110-
The use of constructor injection means that you should not use static functions if you want to take advantage of dependency injection.
110+
The use of constructor injection means that you should not use static functions if you want to take advantage of dependency injection. For cosmos client refer [this](https://github.com/Azure/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos.Samples/CodeSamples/AzureFunctions/AzureFunctionsCosmosClient.cs).
111111

112112
## Service lifetimes
113113

0 commit comments

Comments
 (0)