diff --git a/aspnetcore/fundamentals/dependency-injection.md b/aspnetcore/fundamentals/dependency-injection.md index 16d6ef2847..f1939c4a89 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":::