Click or drag to resize

ModuleRegistrarRegisterConfiguredModules Method

Registers individual configured modules into a container builder.

Namespace:  Autofac.Configuration.Core
Assembly:  Autofac.Configuration (in Autofac.Configuration.dll) Version: 6.0.0+ec1c6438ceb3f3338c7364e35e7303f014e3fc39
Syntax
public virtual 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.

Implements

IModuleRegistrarRegisterConfiguredModules(ContainerBuilder, IConfiguration)
Exceptions
ExceptionCondition
ArgumentNullException Thrown if builder or configuration is .
InvalidOperationException Thrown if there is any issue in parsing the module configuration into registrations.
Remarks

This is where the individually configured component registrations get added to the builder. The modules collection from the configuration get processed into individual modules which are instantiated and activated inside the builder.

See Also