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
Public Enumeration ParameterMapping
Members
| Member name | Value | Description |
---|
| Adaptive | 0 |
Chooses parameter mapping based on the factory type.
For Func-based factories this is equivalent to ByType, for all
others ByName will be used.
|
| ByName | 1 |
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.
|
| ByType | 2 |
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.
|
| ByPosition | 3 |
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