Click or drag to resize

ParameterMapping Enumeration

Determines how the parameters of the delegate type are passed on to the generated Resolve() call as Parameter objects.

Namespace:  Autofac.Features.GeneratedFactories
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public enum ParameterMapping
Members
  Member nameValueDescription
Adaptive0 Chooses parameter mapping based on the factory type. For Func-based factories this is equivalent to ByType, for all others ByName will be used.
ByName1 Pass the parameters supplied to the delegate through to the underlying registration as NamedParameters based on the parameter names in the delegate type's formal argument list.
ByType2 Pass the parameters supplied to the delegate through to the underlying registration as TypedParameters based on the parameter types in the delegate type's formal argument list.
ByPosition3 Pass the parameters supplied to the delegate through to the underlying registration as PositionalParameters based on the parameter indices in the delegate type's formal argument list.
See Also