Why not use Microsoft.Extensions.DependencyInjection? #1395
-
I understand there might have been cause to work with an internally developed IoC provider back in the early days of .NET Core but as Microsoft.Extensions.DependencyInjection is so ubiquitous in apps on this platform I was wondering why TypeRegistrar is still necessary. It always feels a bit off to use ServiceCollection for all the primary setup and then hand it off to a different class with (likely) it's own behaviors. |
Beta Was this translation helpful? Give feedback.
Answered by
patriksvensson
Dec 3, 2023
Replies: 1 comment
-
It's an adapter. We don't wish to have a dependency on a specific IoC container. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
patriksvensson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's an adapter. We don't wish to have a dependency on a specific IoC container.