Gets or sets the lifestyle selection behavior. The container's default behavior is to make
registrations using the Transient lifestyle.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Property Value
Type: ILifestyleSelectionBehaviorThe lifestyle selection behavior.
Exceptions
| Exception | Condition |
|---|---|
| NullReferenceException | Thrown when the supplied value is a null reference. |
| InvalidOperationException | Thrown when the container already contains registrations. |
See Also