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: 4.9.1+831973f4d02fbc619921dfaa8ac0c536f60ae7a3
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