ComponentRegistrarRegisterConfiguredComponents Method |
Namespace: Autofac.Configuration.Core
public virtual void RegisterConfiguredComponents( ContainerBuilder builder, IConfiguration configuration )
Exception | Condition |
---|---|
ArgumentNullException | Thrown if builder or configuration is . |
InvalidOperationException | Thrown if there is any issue in parsing the component configuration into registrations. |
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.