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.
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 4.4.0
public interface ILifestyleSelectionBehavior
Public Interface ILifestyleSelectionBehavior
Thetype exposes the following members.
Selects the lifestyle based on the supplied type information.