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: 6.0.0+ec1c6438ceb3f3338c7364e35e7303f014e3fc39
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