Click or drag to resize

ComponentRegistrarRegisterConfiguredComponents Method

Registers individual configured components into a container builder.

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

Implements

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

This is where the individually configured component registrations get added to the builder. The components collection from the configuration get processed into individual registrations with associated lifetime scope, name, etc.

You may influence the process by overriding this whole method or by overriding individual parsing subroutines in this registrar.

See Also