Update dependency-injection.md (#33563)

* Update dependency-injection.md

* Update aspnetcore/fundamentals/dependency-injection.md

Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>

---------

Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
revert-33263-revert-33221-DevCerts
Rick Anderson 2024-09-06 12:04:31 -10:00 committed by GitHub
parent 2e5e099900
commit 8939fbd801
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -150,9 +150,9 @@ public class MyService
:::code language="csharp" source="~/../AspNetCore.Docs.Samples/samples/KeyedServices9/Program.cs" highlight="6,7,12-14,39,47" id="snippet_1":::
#### Keyed DI in Middleware
#### Keyed services in Middleware
Middleware supports Keyed DI in both the constructor and the `Invoke`/`InvokeAsync` method:
Middleware supports Keyed services in both the constructor and the `Invoke`/`InvokeAsync` method:
:::code language="csharp" source="~/../AspNetCore.Docs.Samples/samples/KeyedServices9/Program.cs" id="snippet_2":::