Skip to content

Commit

Permalink
Update dependency-injection.md (#33563)
Browse files Browse the repository at this point in the history
* Update dependency-injection.md

* Update aspnetcore/fundamentals/dependency-injection.md

Co-authored-by: Tom Dykstra <[email protected]>

---------

Co-authored-by: Tom Dykstra <[email protected]>
  • Loading branch information
Rick-Anderson and tdykstra authored Sep 6, 2024
1 parent 2e5e099 commit 8939fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aspnetcore/fundamentals/dependency-injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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":::

Expand Down

0 comments on commit 8939fbd

Please sign in to comment.