Defines the container's behavior for selecting the lifestyle for a registration in case no lifestyle
is explicitly supplied.
Set the LifestyleSelectionBehavior
property of the container's Options property to change the default behavior
of the container. By default, when no lifestyle is explicitly supplied, the
Transient lifestyle is used.
Namespace: SimpleInjector.Advanced
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
The ILifestyleSelectionBehavior type exposes the following members.
Methods
Name | Description | |
---|---|---|
SelectLifestyle | Selects the lifestyle based on the supplied type information. |
See Also