HostApplicationBuilder.ConfigureContainerBuilder> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a IServiceProviderFactory
public void ConfigureContainer(Microsoft.Extensions.DependencyInjection.IServiceProviderFactory factory, Action? configure = default);
abstract member ConfigureContainer : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> * Action<'ContainerBuilder> -> unit
override this.ConfigureContainer : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> * Action<'ContainerBuilder> -> unit
Public Sub ConfigureContainer(Of TContainerBuilder) (factory As IServiceProviderFactory(Of TContainerBuilder), Optional configure As Action(Of TContainerBuilder) = Nothing)
Type Parameters
- TContainerBuilder
The type of builder provided by the IServiceProviderFactory
Parameters
- factory
-
IServiceProviderFactory
- configure
-
Action
A delegate used to configure the . This delegate can be used to configure services using APIs that are specific to the IServiceProviderFactory
Implements
Remarks
This method is called by Build(), and so the delegate specified by configure will run after all other services have been registered.
If you call this method multiple times, the previously stored factory and configure delegates are replaced.