Click or drag to resize

IModuleRegistrarRegisterConfiguredModules Method

Registers individual configured modules into a container builder.

Namespace:  Autofac.Configuration
Assembly:  Autofac.Configuration (in Autofac.Configuration.dll) Version: 6.0.0+ec1c6438ceb3f3338c7364e35e7303f014e3fc39
Syntax
void RegisterConfiguredModules(
	ContainerBuilder builder,
	IConfiguration configuration
)

Parameters

builder
Type: AutofacContainerBuilder
The ContainerBuilder that should receive the configured registrations.
configuration
Type: IConfiguration
The IConfiguration containing the configured registrations.
Exceptions
ExceptionCondition
ArgumentNullException Thrown if builder or configuration is .
InvalidOperationException Thrown if there is any issue in parsing the module configuration into registrations.
Remarks

Implementations of this method are responsible for adding modules to the container by parsing configuration model data and executing the registration logic.

See Also