Open guibranco opened 1 year ago
Hey guibranco, I would be happy to help here.
Can you elaborate a bit more on "Add support to the built-in method of .NET UseServiceProviderFactory
"?
ServiceLocator
currently works as an IoC container; do you have some kind of configuration/setting in mind, that the user can make at the start, depending on which the ServiceLocator
uses current implementation or built in .NET implementation?
Any update on this?
@Mohammad-Haris, not yet. I will look into this during the week!
Hey, I'm a bit lost here! Not sure which file I should be fixing. Could you give me a bit more to go on? Maybe add some details to the issue or drop a comment with some extra hints? Thanks!
Have feedback or need help? Feel free to email info@gitauto.ai.
Description
We must enhance our service registry to support the
.NET
methodHostBuilder.UseServiceProviderFactory
. This will involve creating our own IoC (Inversion of Control) container, following the standards and rules observed in popular libraries like Autofac, Castle Windsor, NInject, and SimpleInjector, but without introducing dependencies on these external libraries.Problem Statement
UseServiceProviderFactory
method, and we do not have a custom IoC container that follows established patterns and practices. This limits our flexibility in managing dependencies and configuring services.UseServiceProviderFactory
, we cannot fully leverage the benefits of advanced dependency management techniques and integrations.Proposed Solution
.NET
using theHostBuilder.UseServiceProviderFactory
method, providing a flexible and extensible solution for dependency management.Implementation Steps
Design Custom IoC Container:
Implement
UseServiceProviderFactory
:Implement a service provider factory that uses the custom IoC container:
Update the
Program.cs
orStartup.cs
file to use the custom service provider factory:Configure Dependency Registration:
Test Integration:
UseServiceProviderFactory
integration work as expected. Test service registration, resolution, and lifecycle management.Documentation:
HostBuilder.UseServiceProviderFactory
.Additional Notes