Skip to content

Commit f23e8d1

Browse files
committed
Move keyed-service samples to dependency-injection folder
1 parent 2bf78da commit f23e8d1

File tree

10 files changed

+9
-11
lines changed

10 files changed

+9
-11
lines changed

projects/.net8/README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,3 @@
128128
* [Multiple IExceptionHandler](iexception-handler-2)
129129

130130
Implement multiple `IExceptionHandler` to handle ASP.NET Core exceptions.
131-
132-
## Keyed Services
133-
134-
* [Keyed Services in Minimal API](keyed-service)
135-
136-
Use `IServiceProvider.GetRequiredKeyedService<T>(key)` to get different type of implementation instances based on string key in Minimal API
137-
138-
* [Keyed Services in MVC](keyed-service-2)
139-
140-
Use `IServiceProvider.GetRequiredKeyedService<T>(key)` to get different type of implementation instances based on string key in MVC

projects/dependency-injection/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@
1818

1919
This shows how to register [Lazy](https://docs.microsoft.com/en-us/dotnet/api/system.lazy-1?view=net-5.0) types in the built in Dependency Injection.
2020

21-
dotnet6
21+
## Keyed Services
22+
23+
* [Keyed Services in Minimal API](keyed-service)
24+
25+
Use `IServiceProvider.GetRequiredKeyedService<T>(key)` to get different type of implementation instances based on string key in Minimal API
26+
27+
* [Keyed Services in MVC](keyed-service-2)
28+
29+
Use `IServiceProvider.GetRequiredKeyedService<T>(key)` to get different type of implementation instances based on string key in MVC
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)