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