Click or drag to resize

ConfigurationRegistrarRegisterConfiguration Method

Registers the contents of a configuration section into a container builder.

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

IConfigurationRegistrarRegisterConfiguration(ContainerBuilder, IConfiguration)
Exceptions
ExceptionCondition
ArgumentNullException Thrown if builder or configuration is .
Remarks

This method is the primary entry point to configuration section registration. From here, the various modules, components, and referenced files get registered. You may override any of those behaviors for a custom registrar if you wish to extend registration behavior.

See Also