Click or drag to resize

IComponentRegistrarRegisterConfiguredComponents Method

Registers individual configured components into a container builder.

Namespace:  Autofac.Configuration
Assembly:  Autofac.Configuration (in Autofac.Configuration.dll) Version: 4.1.0+032145bf00b17ede26b58c319739706cfab51c10
Syntax
void RegisterConfiguredComponents(
	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 component configuration into registrations.
Remarks

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

See Also