Click or drag to resize

AutofacRegistrationPopulate Method (ContainerBuilder, IEnumerableServiceDescriptor)

Populates the Autofac container builder with the set of registered service descriptors and makes IServiceProvider and IServiceScopeFactory available in the container.

Namespace:  Autofac.Extensions.DependencyInjection
Assembly:  Autofac.Extensions.DependencyInjection (in Autofac.Extensions.DependencyInjection.dll) Version: 7.1.0+380b08798bf724f36e200e687129b44a0778ab92
Syntax
public static void Populate(
	this ContainerBuilder builder,
	IEnumerable<ServiceDescriptor> descriptors
)

Parameters

builder
Type: AutofacContainerBuilder
The ContainerBuilder into which the registrations should be made.
descriptors
Type: System.Collections.GenericIEnumerableServiceDescriptor
The set of service descriptors to register in the container.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ContainerBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also