ILifestyleSelectionBehavior Interface

Simple Injector
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

public interface ILifestyleSelectionBehavior

The ILifestyleSelectionBehavior type exposes the following members.

Methods

  NameDescription
Public methodSelectLifestyle
Selects the lifestyle based on the supplied type information.
Top
See Also

Reference