[release/8.0] Fix support of FromKeyedServicesAttribute in ActivatorUtilities.CreateF...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sat, 16 Sep 2023 01:26:40 +0000 (18:26 -0700)
committerGitHub <noreply@github.com>
Sat, 16 Sep 2023 01:26:40 +0000 (18:26 -0700)
commitc7252a392eee592c98ca509790fb3ed32407317e
treec9a04dab6553ddc30bdb82bac5e0b76684cb3efd
parent7b324065ebe0149e13960259c91701bc2d2ed156
[release/8.0] Fix support of FromKeyedServicesAttribute in ActivatorUtilities.CreateFactory (#92144)

* Fix support of FromKeyedServicesAttribute in ActivatorUtilities.CreateFactory

* Addressing comment and adding a test

---------

Co-authored-by: Benjamin Petit <bpetit@microsoft.com>
src/libraries/Microsoft.Extensions.DependencyInjection.Abstractions/src/ActivatorUtilities.cs
src/libraries/Microsoft.Extensions.DependencyInjection.Specification.Tests/src/KeyedDependencyInjectionSpecificationTests.cs
src/libraries/Microsoft.Extensions.DependencyInjection/tests/DI.Tests/ActivatorUtilitiesTests.cs