Back to Practical Aspnetcore

Using Keyed Service with Minimal API

projects/dependency-injection/keyed-service/README.md

latest167 B
Original Source

Using Keyed Service with Minimal API

Use IServiceProvider.GetRequiredKeyedService<T>(key) to get different type of implementation instances based on string key.