simpleinjector / SimpleInjector

An easy, flexible, and fast Dependency Injection library that promotes best practice to steer developers towards the pit of success.
https://simpleinjector.org
MIT License
1.22k stars 152 forks source link

Provide a container builder to use with ConfigureHostBuilder.ConfigureContainer<TContainerBuilder> Method #1004

Closed paulomorgado closed 3 months ago

paulomorgado commented 3 months ago

Currently, SimpleInjector in .NET feels like an afterthought.

By providing a container builder to use ConfigureHostBuilder.ConfigureContainer<TContainerBuilder> Method, it will be possible to plug into the host and web application creation pipeline to change service registrations (e.g. for tests).

dotnetjunkie commented 3 months ago

It might feel like an afterthought, but it certainly isn't. Our current implementation is a very well-thought carefully designed implementation considering the constraints we're dealing with.

To understand why this is, please make yourself acquaintable with the following posts:

Because of the above, we simply can't implement your feature request and I will, therefore, close this issue.