Back to Practical Aspnetcore

Using Keyed Service with MVC

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

latest159 B
Original Source

Using Keyed Service with MVC

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