Click or drag to resize

FactoryGenerator Constructor (Type, Service, ServiceRegistration, ParameterMapping)

Initializes a new instance of the FactoryGenerator class.

Namespace:  Autofac.Features.GeneratedFactories
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public FactoryGenerator(
	Type delegateType,
	Service service,
	ServiceRegistration productRegistration,
	ParameterMapping parameterMapping
)

Parameters

delegateType
Type: SystemType
The delegate to provide as a factory.
service
Type: Autofac.CoreService
The service that will be activated in order to create the products of the factory.
productRegistration
Type: Autofac.CoreServiceRegistration
The component that will be activated in order to create the products of the factory.
parameterMapping
Type: Autofac.Features.GeneratedFactoriesParameterMapping
The parameter mapping mode to use.
See Also