unitycontainer / microsoft-dependency-injection

Unity.Microsoft.DependencyInjection package
Apache License 2.0
63 stars 36 forks source link

Register IServiceProviderIsService interface #98

Open rikrak opened 1 month ago

rikrak commented 1 month ago

Updates to VS/dotnet have broken some codebases that use Unity as the IoC container[1][2] due to the IServiceProviderIsService interface not being registered. Feels like it would make sense for this to be registered in the ServiceProviderFactory along with other similar interfaces.

[1] https://developercommunity.visualstudio.com/t/Upgrade-to-VS-v17111-breaks-swagger:-/10728128 [2] https://developercommunity.visualstudio.com/t/With-the-latest-upgrade-to-VS-2022-v179/10540911?sort=newest&viewtype=all