microsoft-dependency-injection icon indicating copy to clipboard operation
microsoft-dependency-injection copied to clipboard

Use of explicit casts on Service Provider Factory

Open NickPolyder opened this issue 5 years ago • 1 comments

Hello, while working with asp.net core i witnessed a situation where the class: ServiceProviderFactory.cs uses direct cast to UnityContainer thus making it unusable when someone needs to create a specific IUnityContainer implementation.

Is this functionality by design ? or it should be fixed to use interfaces instead?

Best,

NickPolyder avatar Apr 07 '20 11:04 NickPolyder

It should be fixed

ENikS avatar Apr 07 '20 18:04 ENikS