From 8939fbd801c08979f9aa322002aa0d76ee2fa0f7 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:04:31 -1000 Subject: [PATCH] Update dependency-injection.md (#33563) * Update dependency-injection.md * Update aspnetcore/fundamentals/dependency-injection.md Co-authored-by: Tom Dykstra --------- Co-authored-by: Tom Dykstra --- aspnetcore/fundamentals/dependency-injection.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/fundamentals/dependency-injection.md b/aspnetcore/fundamentals/dependency-injection.md index 16d6ef28471e..f1939c4a89e0 100644 --- a/aspnetcore/fundamentals/dependency-injection.md +++ b/aspnetcore/fundamentals/dependency-injection.md @@ -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":::