Skip to content

Commit 8a6eb22

Browse files
authored
Minor grammatical suggestions
.NET Core dependency injection, while specific, is still somewhat abstract and probably shouldn't have a "the" preceding it. The however seems unnecessary in this sentence. Azure Functions is plural, but when talking about *a* function, I think singular Function rather than plural seems more correct.
1 parent a317e70 commit 8a6eb22

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
@@ -12,7 +12,7 @@ ms.reviewer: jehollan
1212

1313
Azure Functions supports the dependency injection (DI) software design pattern, which is a technique to achieve [Inversion of Control (IoC)](https://docs.microsoft.com/dotnet/standard/modern-web-apps-azure-architecture/architectural-principles#dependency-inversion) between classes and their dependencies.
1414

15-
- Dependency injection in Azure Functions is built on the .NET Core Dependency Injection features. Familiarity with the [.NET Core dependency injection](https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection) is recommended. There are differences, however, in how you override dependencies and how configuration values are read with Azure Functions on the Consumption plan.
15+
- Dependency injection in Azure Functions is built on the .NET Core Dependency Injection features. Familiarity with [.NET Core dependency injection](https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection) is recommended. There are differences in how you override dependencies and how configuration values are read with Azure Functions on the Consumption plan.
1616

1717
- Support for dependency injection begins with Azure Functions 2.x.
1818

@@ -112,7 +112,7 @@ namespace MyNamespace
112112

113113
## Service lifetimes
114114

115-
Azure Functions apps provide the same service lifetimes as [ASP.NET Dependency Injection](https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection#service-lifetimes). For a Functions app, the different service lifetimes behave as follows:
115+
Azure Functions apps provide the same service lifetimes as [ASP.NET Dependency Injection](https://docs.microsoft.com/aspnet/core/fundamentals/dependency-injection#service-lifetimes). For a Function app, the different service lifetimes behave as follows:
116116

117117
- **Transient**: Transient services are created upon each request of the service.
118118
- **Scoped**: The scoped service lifetime matches a function execution lifetime. Scoped services are created once per execution. Later requests for that service during the execution reuse the existing service instance.

0 commit comments

Comments
 (0)