PropertyWiringOptions Enumeration |
Options that can be applied when autowiring properties on a component. (Multiple options can
be specified using bitwise 'or' - e.g. AllowCircularDependencies | PreserveSetValues.
Namespace:
Autofac
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax [FlagsAttribute]
public enum PropertyWiringOptions
<FlagsAttribute>
Public Enumeration PropertyWiringOptions
Members
| Member name | Value | Description |
---|
| None | 0 |
Default behavior. Circular dependencies are not allowed; existing non-default
property values are overwritten.
|
| AllowCircularDependencies | 1 |
Allows property-property and property-constructor circular dependency wiring.
This flag moves property wiring from the Activating to the Activated event.
|
| PreserveSetValues | 2 |
If specified, properties that already have a non-default value will be left
unchanged in the wiring operation.
|
See Also