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
parent
2e5e099900
commit
8939fbd801
|
@ -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":::
|
||||
|
||||
|
|
Loading…
Reference in New Issue