Open gilmar-sales opened 3 months ago
Could it be configured in the Configure
method? We could inject any service registered in the service collection like IServiceProvider
Configure method doesn't allow access to the IHost instance like the BuildHost method for the CreateHostBuilder, this could help if thirdparty libraries uses the IHost instead of the IServiceProvider
what about supporting IHost
in the Configure
method?
Configure method doesn't allow access to the IHost instance like the BuildHost method for the CreateHostBuilder, this could help if thirdparty libraries uses the IHost instead of the IServiceProvider
That is not work?
public static void Configure(IHost host) => Counter++;
Support for BuildHost with the HostApplicationBuilder: